# MJPEG over TCP for IP Camera component

**URL:** <https://forum.inductiveautomation.com/t/mjpeg-over-tcp-for-ip-camera-component/24411>\
**Category:** Ignition\
**Created:** [April 26, 2019, 8:39am UTC](https://forum.inductiveautomation.com/t/mjpeg-over-tcp-for-ip-camera-component/24411 "2019-04-26T08:39:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [April 26, 2019, 8:39am UTC](https://forum.inductiveautomation.com/t/mjpeg-over-tcp-for-ip-camera-component/24411/1 "2019-04-26T08:39:12Z")

</div>

I’m trying to show a video stream on the IP Camera component.

I’m able to use VLC to connect to the camera using the URL `tcp://IpAddress:5001`. The vendor says it’s MJPEG, and from what I see, it’s indeed a stream of JPEG images separated by a boundary and meta data. So AFAIK, it’s valid MJPEG, but served over TCP.

```auto
---boundarystring
Content-Type: image/jpeg
Content-Length: 200126
|
|
Data here
|
|
---boundarystring
...

```

However, when I enter that URL into the URL field of the IP Camera component, it does a number of connection retries, and then fails with the message `ClientProtocolException: null`.

I have a feeling that the IP Camera component not only requires MJPEG, but also requires it to be streamed over HTTP. Is that correct?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 26, 2019, 12:13pm UTC](https://forum.inductiveautomation.com/t/mjpeg-over-tcp-for-ip-camera-component/24411/2 "2019-04-26T12:13:46Z")

</div>

> [@Sanderd17](#):
>
> I have a feeling that the IP Camera component not only requires MJPEG, but also requires it to be streamed over HTTP. Is that correct?

Yes, that's correct.
