The code give me, my own IP Address and how can I get internet IP Adress,? I
mean, the same code that we get from www.whatismyip.com
Thanks,
José Perdigão
JP> The code give me, my own IP Address and how can I get internet IP
JP> Adress,? I mean, the same code that we get from www.whatismyip.com
if your ocmputer is connected directly to internet, then the code will give
you the address as one of the adapters. But if there's router, there's no
way - the internet address is only known to the router, not to your
computer. The web page shows the address your request came from - which is
your router.
the same applies. No component on the computer will know the external
address of the router.
ak> exec xp_cmdshell 'ipconfig /all'
ak> Vadim Rapp wrote:
JP>>> The code give me, my own IP Address and how can I get internet IP
JP>>> Adress,? I mean, the same code that we get from www.whatismyip.com
ak>>
ak>> if your ocmputer is connected directly to internet, then the code will
ak>> give you the address as one of the adapters. But if there's router,
ak>> there's no way - the internet address is only known to the router, not
ak>> to your computer. The web page shows the address your request came
ak>> from - which is your router.
ak>>
ak>> Vadim Rapp
it's a shame that there isn't a way to query a router; in a standard
fashion-- in order to get this information
if your router was a linksys you could theorhetically parse the html
and find the real ip address
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.