# IP Camera Viewer Proxy Issue

**URL:** <https://forum.inductiveautomation.com/t/ip-camera-viewer-proxy-issue/12790>\
**Category:** Ignition\
**Created:** [March 15, 2017, 4:08am UTC](https://forum.inductiveautomation.com/t/ip-camera-viewer-proxy-issue/12790 "2017-03-15T04:08:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![0sm0](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/0sm0/32/15228_2.png) [@0sm0](https://forum.inductiveautomation.com/u/0sm0)\
**Post date:** [March 15, 2017, 4:08am UTC](https://forum.inductiveautomation.com/t/ip-camera-viewer-proxy-issue/12790/1 "2017-03-15T04:08:55Z")

</div>

Hi Guys,

Ignition V7.9.1

Using the IP Camera Viewer to do Jpeg Stills with the following URL works when the client or designer is on the same subnet as the camera.

```auto
http://10.30.2.60/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=user&pwd=xxxx
```

However when using a client that is not directly on the same subnet i use the following URL I get “IOExcetion: URL is not a JPEG image” error.

`http://server:8088/main/system/urlproxy?url=http://10.30.2.60/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=user&pwd=xxxx
`

The URL Proxy is enabled in the Ignition Gateway config file as below and has worked previously on a different camera.

```auto
wrapper.java.additional.10=-Dvision.urlproxy.enabled=true
```

Just wonder if there is a reason that the Proxy might not work in this case?

Cheers for any ideas.

Tim…

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 15, 2017, 12:07pm UTC](https://forum.inductiveautomation.com/t/ip-camera-viewer-proxy-issue/12790/2 "2017-03-15T12:07:16Z")

</div>

Did your previous success including proxying url GET parameters? You might need to urlencode the ? and & delimiters.

---

<div class="post-metadata">

**Author:** ![0sm0](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/0sm0/32/15228_2.png) [@0sm0](https://forum.inductiveautomation.com/u/0sm0)\
**Post date:** [March 16, 2017, 12:28am UTC](https://forum.inductiveautomation.com/t/ip-camera-viewer-proxy-issue/12790/3 "2017-03-16T00:28:33Z")

</div>

![:prayer:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e5a7e3b63facc151ea73e3b45db7bdb3d4bdc316.gif ":prayer:")

URL encoding did the trick

```auto
http://server:8088/main/system/urlproxy?url=http://10.30.2.60/cgi-bin/CGIProxy.fcgi%3Fcmd%3DsnapPicture2%26usr%3Duser%26pwd%3Dxxxx
```

Thanks for the help. ![:thumb_left:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e26afb081ddde6df016df6ee49159cf56aaca688.gif ":thumb\_left:")

---

<div class="post-metadata">

**Author:** ![csanchez](https://avatars.discourse-cdn.com/v4/letter/c/8491ac/32.png) [@csanchez](https://forum.inductiveautomation.com/u/csanchez)\
**Post date:** [July 15, 2019, 10:56pm UTC](https://forum.inductiveautomation.com/t/ip-camera-viewer-proxy-issue/12790/4 "2019-07-15T22:56:21Z")

</div>

HI,  
It’s a bit old topic… but i try to connect my Hikvision camera trhow the ignition proxy gateway but i get “Exceptio: Receiver HTTP 401: Unauthorized” message (I modified the ignition.conf file to enable the proxy). If i connect directly with the url “[http://admin:pass@192.168.100.250/Streaming/channels/102/httppreview](http://admin:pass@192.168.100.250/Streaming/channels/102/httppreview)” it work perfect, but only with one client-designer, that’s why i’m trying throw the gateway with the url “[http://192.168.100.146:8088/main/system/urlproxy?url=http://admin:pass@192.168.100.250/Streaming/channels/102/httppreview](http://192.168.100.146:8088/main/system/urlproxy?url=http://admin:pass@192.168.100.250/Streaming/channels/102/httppreview)” but nothing work. Any suggestion??  
Thanks!
