I'm using a cable modem based internet service plugged into a small Linksys DSL/Cable router with built in DHCP server and ethernet switch.
Basically, I enabled port forwarding on the router to allow external users to get in to a machine on the private network. Unfortunately, the IP address handed out by the cable company is dynamic. I need to be able to determine my real IP (i.e. the router's real IP).
I was thinking of writing a small perl script (executing in a cron job) that opens up a cgi based page on a public machine on the internet that records the remote host header then have that perl script email me the address.
I was hoping that someone could tell me a better was of doing this using some sort of IP family protocol such as ICMP to determine the true address of my firewall without resorting to trickery.
Basically, I enabled port forwarding on the router to allow external users to get in to a machine on the private network. Unfortunately, the IP address handed out by the cable company is dynamic. I need to be able to determine my real IP (i.e. the router's real IP).
I was thinking of writing a small perl script (executing in a cron job) that opens up a cgi based page on a public machine on the internet that records the remote host header then have that perl script email me the address.
I was hoping that someone could tell me a better was of doing this using some sort of IP family protocol such as ICMP to determine the true address of my firewall without resorting to trickery.