Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mapping IP address

Status
Not open for further replies.

ani77

Programmer
Oct 4, 2002
14
IN
Hello,

I am a new user of Apache. Need some help wrt mapping a particular IP address.
I have a pc which acts as a web server. I have a web camera attached to this PC and has a local IP address say 10.1.1.1 is assigned to the camera.

Now when my pc connects to the Internet, I would give my online users the new dynamic IP of my pc.
When they type my new IP in their IE they should be directly taken to the web camera's IP and the respective page should get loaded.

I believe I will need to make some entries in the conf file.
Would appreciate a quick response.

Thank you.
ani77
 
ani77,

It sounds like you need to forward your publicly routable IP address to your internal LAN IP (10.1.1.1). Are you using a router to provide internal IP addresses? If so, just set up port forwarding so that incoming requests on port 80 (or whatever port people use to connect from outside) routes to 10.1.1.1.

Wishdiak
 
You can also check out afraid.org. They have the best nameserver service I've found for dynamic IP's (DDNS). You can set up the regular domain for one ip and then set up a subdomain (ex. camera.yoursite.com) to update to the camera. They also have downloadable clients that take care of this update. (I use FreeDNS that I downloaded through that site)

-Jay
 
Hello,

wishdiak -
I am not using a router. I have simply connected the camera via an ethernet cable. The camera has a local IP address,
for ex. 192.168.0.99

jay-
I signed up at afraid.org. Thanks for the link.
Created a subdomain for camera. Gave my dynamic IP to my main domain and the local IP to sub-domain camera.
It recognizes the main domain and loads the page properly.
But when i go to camera.mydomain.com it doesnt load the required page.

Some settings I need to do locally??

ani77
 
Oh- Local IPs won't be visible to the general internet, even if you're referring to it through your main page- the user will still be "remote" and therefore can't access it.

Your camera probably came with some software to automatically save an image file to a specific location. I'd say try that and put that right in a directory that your webserver uses. (Same thing may be true for media).

Or: your camera will need to be set to a different port (webservers are normally 80 or 8080), maybe 81. Open up your firewall's remote port 81 and then just add :81 to the end of the url: -- which brings us back to wishdiak's post above.

You should get a router too- its firewall capabilities will help you out immensely.

-Jay
 
Agreed. Last I checked, a Wireless router could be had for ~$20. If you're using wired ethernet, you should be able to pick one up for next to nothing.

Wishdiak
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top