Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to access public IP camera which is not in my local network #1

Open
Yogita-Techspwan opened this issue Feb 24, 2020 · 1 comment

Comments

@Yogita-Techspwan
Copy link

Hi,

I have been able to discover and connect to the ONVIF cameras in my local network.
how can I access the camera which is placed in the remote location/another network/ global network/ public ONVIF camera

@sxiii
Copy link
Owner

sxiii commented Feb 25, 2020

Hi @Yogita-Techspwan . Thank you for your question.

Accessing the ONVIF service is 100% isn't different from accessing any other public TCP/IP-protocol service. Hence, if the IP address of the service is already public, you just use it to access the camera feed. You just create the config.js file like this:

module.exports = { 
  xaddr: 'http://public_camera_IP_or_hostname:5000/onvif/device_service',
  user : 'admin',
  pass : '123456'
 };

And use it to access camera feed.

If the camera is in private network without public IP, you have these options:

  • you need to either buy a public/white/global IP (or server) inside of your provider network and make a local redirection of port 5000 from your public IP/server to internal camera's IP; OR
  • if your IP is global but it changes with each re-connect to provider -> you can use so-called "nodns" services like https://freedns.afraid.org or payed onces like DynDNS etc.
  • if first two options aren't possible; you need to set-up something like a tunnel to some globally accessible IP, to which camera will be connected all the time (different options in here: proxies/VPNs/hamachi/you-name-it) and then access the camera publicly with this service IP. Still you need to make redirects.

So, as the ONVIF protocol works over IPv4 or IPv6 (I'm not sure about the latter); you need a publicly reachable IPv4/IPv6; there are no other options without modifying the protocol as I see it. Other way, you will need to make your own camera with your own protocol.

Last but not least; along with port redirects; if your camera is behind a firewall; you will also have to open the port 5000.

Hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants