If you're trying to connect to camera from outside the network where it's connected to, then you have to login on the administration area of your router and enable UPNP or add a forwarding rule for the camera.
Basically, you need to open the camera to wide public. Typically, in Port Forward you should add the IP of the camera (local IP, ie. 192.168.0.100) and the port used.
Internal IP: ***.***.***.***
Internal port: XXXX
External port: XXXX
After this procedure, you will have the possibility to access the camera using the public IP and the selected port, something like: http://192.168.0.100:1234
in a browser.