Remote IP Address

  • Thread starter Thread starter paul
  • Start date Start date
P

paul

Could anybody please provide vb.net sample code of how an application
can discover its remote IP address? Note Remote as opposed to local
(not 192.168 etc). Bascially would like my application to know when my
broadband modem dynamic IP address changes. If not possible, does
anyone know of a web service api I could hook into to return my own ip?

Thanks,

Paul.
 
The external IP sits on the opposite side of your broadband router. This
means you need outside help.

You can query your router, but it may block. Many routers are set to block
queries and handle all NATing requests themselves.

Not sure if there is a web service out there to respond with your IP
address. You can hit one of the many sites that gives you that info, but you
will have to parse it out yourself. One site I know is
http://www.showmyip.com/


--
Gregory A. Beamer
MVP; MCP: +I, SD, SE, DBA

*************************************************
Think outside the box!
*************************************************
 
Have a look at http://www.directupdate.net they have a service that will do
the address monitoring for you and take some action (for example run an
application) when it changes. Highly configurable with standard and plugin
detectors/actions.

/LM
 
Back
Top