# IP Camera on different network proxy authentication HTTP 407

**URL:** <https://forum.inductiveautomation.com/t/ip-camera-on-different-network-proxy-authentication-http-407/7262>\
**Category:** Ignition\
**Created:** [September 16, 2013, 2:17pm UTC](https://forum.inductiveautomation.com/t/ip-camera-on-different-network-proxy-authentication-http-407/7262 "2013-09-16T14:17:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brett\_Yeomans](https://avatars.discourse-cdn.com/v4/letter/b/35a633/32.png) [@Brett\_Yeomans](https://forum.inductiveautomation.com/u/Brett_Yeomans)\
**Post date:** [September 16, 2013, 2:17pm UTC](https://forum.inductiveautomation.com/t/ip-camera-on-different-network-proxy-authentication-http-407/7262/1 "2013-09-16T14:17:59Z")

</div>

When trying to use the IP camera viewer on the PLC network which is different than the client(s) networks using:

> [@](#):
>
> [http://gatewayip](http://gatewayip):port/main/system/urlproxy?url=[http://the/actual/url](http://the/actual/url)

I get a message mentioning HTTP 407 Proxy Authentication Required

Any ideas how to get around this?

---

<div class="post-metadata">

**Author:** ![adamaustin](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@adamaustin](https://forum.inductiveautomation.com/u/adamaustin)\
**Post date:** [September 19, 2013, 10:04pm UTC](https://forum.inductiveautomation.com/t/ip-camera-on-different-network-proxy-authentication-http-407/7262/2 "2013-09-19T22:04:14Z")

</div>

Sometimes in HTTP websites you can get around this using extra parameters. If you knew exactly what parameters were expected, you could try just passing them at the end of the URL:

```auto
http://gatewayip:port/main/system/urlproxy?url=http://the/actual/url&username=whatever&password=whatever
```

If it’s using htaccess authentication or something similar, you could try passing the username and password through the URL using the old method:

```auto
http://username:password@gatewayip:port/main/system/urlproxy?url=http://the/actual/url
```

Unfortunately, neither of these techniques are recommended (I show them here for demonstration purposes only, of course) because they expose your credentials to other users of the system and the internet too since all URL paths are stored (at least limitedly, if that’s a word) in every server they pass through.

---

<div class="post-metadata">

**Author:** ![marioquark](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@marioquark](https://forum.inductiveautomation.com/u/marioquark)\
**Post date:** [May 29, 2014, 2:58pm UTC](https://forum.inductiveautomation.com/t/ip-camera-on-different-network-proxy-authentication-http-407/7262/3 "2014-05-29T14:58:31Z")

</div>

Same problem here.  
The Axis camera is in the server LAN and requests authentication.  
I get the “HTTP Status 401 - Unauthorized” error connecting without any authentication.

I tried putting auth both in the Ignition server (using [user:pass@server](http://user:pass@server)), in the camera URL (same method) and in every combination of them.  
I also tried to encode all or part of the url. No way.  
Where is the mistake?  
Is it possible camera does not accept the user:pass@ auth?  
Thanks!

---

<div class="post-metadata">

**Author:** ![marioquark](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@marioquark](https://forum.inductiveautomation.com/u/marioquark)\
**Post date:** [June 3, 2014, 1:43pm UTC](https://forum.inductiveautomation.com/t/ip-camera-on-different-network-proxy-authentication-http-407/7262/4 "2014-06-03T13:43:52Z")

</div>

Trying to solve other ways…  
I suppose the problem is in the gateway auth system: none of the following URLs works.

http://GATEWAYIP:8088/main/system/urlproxy?url=[http://10.8.128.9/usr/janis.conf](http://10.8.128.9/usr/janis.conf)  
http://USER:PASS@GATEWAYIP:8088/main/system/urlproxy?url=[http://10.8.128.9/usr/janis.conf](http://10.8.128.9/usr/janis.conf)

and note [http://10.8.128.9/usr/janis.conf](http://10.8.128.9/usr/janis.conf) is a LAN free-accessible file.

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [June 3, 2014, 5:13pm UTC](https://forum.inductiveautomation.com/t/ip-camera-on-different-network-proxy-authentication-http-407/7262/5 "2014-06-03T17:13:39Z")

</div>

Ok, the one thing that is standing out to me is “janis.conf”. What type of file is this? Is it a jpeg still or an mjpeg?

Also, are you able to move the camera onto the client network to see if it works?  
Are you only trying to pass the username and password in the URL, have you tried putting these in the appropriate properties on the component?

What is the exact model of the Axis IP camera you are using?

---

<div class="post-metadata">

**Author:** ![marioquark](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@marioquark](https://forum.inductiveautomation.com/u/marioquark)\
**Post date:** [June 4, 2014, 7:44am UTC](https://forum.inductiveautomation.com/t/ip-camera-on-different-network-proxy-authentication-http-407/7262/6 "2014-06-04T07:44:59Z")

</div>

It’s an AXIS M1054 Network Camera and the correct end of link is (URL)/mjpg/video.mjpg

Anyway the test above was made to access a public text file that doesn’t need auth, not the camera link (protected). I tried this to solve step-by-step.  
Now i know the issue is not on the camera auth, but somewhere else…

---

<div class="post-metadata">

**Author:** ![w.mandelli](https://avatars.discourse-cdn.com/v4/letter/w/9e8a1a/32.png) [@w.mandelli](https://forum.inductiveautomation.com/u/w.mandelli)\
**Post date:** [June 11, 2014, 10:11am UTC](https://forum.inductiveautomation.com/t/ip-camera-on-different-network-proxy-authentication-http-407/7262/7 "2014-06-11T10:11:02Z")

</div>

Hi marioquark,  
I’m not sure this is exactly what you need but i hope it helps.

Reading the topic, it seems that the point is to use the Ignition Gateway as a proxy to the Webcam.  
These are my tests:

- connected my AXIS 207W to a switch with IP 10.0.0.72

- connected my Ignition Gateway to the same switch with IP 10.0.0.73 on the ethernet LAN  
==\> at this point, Webcam could be accessed from Firefox using this link:  
[root:root@10.0.0.72/axis-cgi/mjpg/video.cgi](http://root:root@10.0.0.72/axis-cgi/mjpg/video.cgi)  
Please, note that IE didn’t work with this link!!!

- connected my Ignition Gateway to a second LAN with IP 172.16.55.24 on the WiFi card  
==\> at this point, Webcam could be accessed from Firefox using this link:  
[172.16.55.24:8088/main/system/ur … sword=root](http://172.16.55.24:8088/main/system/urlproxy?url=http://10.0.0.72/axis-cgi/mjpg/video.cgi&username=root&password=root)  
Please, note that IE didn’t work with this link!!!

---

<div class="post-metadata">

**Author:** ![marioquark](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@marioquark](https://forum.inductiveautomation.com/u/marioquark)\
**Post date:** [June 18, 2014, 2:07pm UTC](https://forum.inductiveautomation.com/t/ip-camera-on-different-network-proxy-authentication-http-407/7262/8 "2014-06-18T14:07:49Z")

</div>

Using your last link scheme… it works!  
Thanks! ![:thumb_left:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e26afb081ddde6df016df6ee49159cf56aaca688.gif ":thumb\_left:")
