Re: How do I get my own IP address?

new topic     » goto parent     » topic index » view thread      » older message » newer message
useless said...

To get your external ip address which the rest of the world sees, set up a short php script on a remote http host to return the contacting ip (that would be you) when you http to it. Keep in mind your isp may change that out from under you at any time, and your router - switch - modem - hub may block all contacts which originate from the outside world.

If it's your External IP address (i.e. that your router, cable modem, etc...) may have, you can use get_url() on http://www.whatismyip.com/ and do a bit of text parsing. A bit more work each time than what Kat is suggesting, but you don't have to have an external server running (not sure of your resources).

Jeremy

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu