IP Camera on different network proxy authentication HTTP 407

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

I get a message mentioning HTTP 407 Proxy Authentication Required

Any ideas how to get around this?

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:

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:

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.

1 Like

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), 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!

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://USER:PASS@GATEWAYIP:8088/main/system/urlproxy?url=http://10.8.128.9/usr/janis.conf

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

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?

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…

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
    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
    Please, note that IE didn’t work with this link!!!

Using your last link scheme… it works!
Thanks! :thumb_left: