Quote:
Originally Posted by robert644
I have a small PC running a webserver that shows screenshots from a webcam. This setup is about 10 miles away from me. It's not a public IP, and that's not an option.
|
If the PC is connected to the internet, you do have a public IP. If not, there is no way you can access it over the internet.
I strongly suspect it is on the internet. You have a router that faces the internet and has a public IP, and also faces the internal network of the PC's location, probably with a private address range like 192.168.1.0/24.
Let's assume a few addresses to make this discussion easier.
Router's public IP: 1.2.3.4
PC's address: 192.168.1.123
If the router features port forwarding like most routers, pick a port number like 1234 and configure it so that port 1234 is forwarded to the correct port on your PC, for example 192.168.1.123:80. Then you can access your PC from the internet through the address 1.2.3.4:1234.
Most home router's public addresses are not fixed. If that is so in your case, find a DDNS provider that maps a domain name to the current public IP address. As an example, no-ip.com is free of charge. Then, you can access your webcam with your-name.ddns.net:1234.
The problem with the above setup is lack of security. Anybody who knows about your port 1234 can access your PC. To avoid that, use VPN software such as OpenVPN or a VPN provider. Instructions are on the internet.