By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,895 Members | 1,106 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,895 IT Pros & Developers. It's quick & easy.

Find External (WAN) IP Address

P: n/a
Help....I am trying to use the System.net namespace to determine the
Internet (WAN) IP Address of my computer. No luck finding any such class so
far.
Any ideas?
Nov 15 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Your dial-up RAS interface or the public IP of your NAT router?

--
William Stacey, MVP

"Chris Fink" <ch*********@hotmail.com> wrote in message
news:uV**************@TK2MSFTNGP12.phx.gbl...
Help....I am trying to use the System.net namespace to determine the
Internet (WAN) IP Address of my computer. No luck finding any such class so far.
Any ideas?

Nov 15 '05 #2

P: n/a
public IP of my router.

"William Stacey" <st***********@mvps.org> wrote in message
news:eM*************@TK2MSFTNGP12.phx.gbl...
Your dial-up RAS interface or the public IP of your NAT router?

--
William Stacey, MVP

"Chris Fink" <ch*********@hotmail.com> wrote in message
news:uV**************@TK2MSFTNGP12.phx.gbl...
Help....I am trying to use the System.net namespace to determine the
Internet (WAN) IP Address of my computer. No luck finding any such class

so
far.
Any ideas?


Nov 15 '05 #3

P: n/a
No apis for that AFAIK. When you think about it, how could your local
machine know. It could be behind many layers of NAT. The only way to know
for sure is to have some kind of service on the "outside" that could tell
you in a reply. You could scrap the IP from a service like
network-tools.com, etc. Or have a small web service that is hosted in front
of your nat to tell you. Or use something like smtp against your router.

--
William Stacey, MVP

"Chris Fink" <ch*********@hotmail.com> wrote in message
news:eB**************@TK2MSFTNGP11.phx.gbl...
public IP of my router.

"William Stacey" <st***********@mvps.org> wrote in message
news:eM*************@TK2MSFTNGP12.phx.gbl...
Your dial-up RAS interface or the public IP of your NAT router?

--
William Stacey, MVP

"Chris Fink" <ch*********@hotmail.com> wrote in message
news:uV**************@TK2MSFTNGP12.phx.gbl...
Help....I am trying to use the System.net namespace to determine the
Internet (WAN) IP Address of my computer. No luck finding any such
class so
far.
Any ideas?



Nov 15 '05 #4

P: n/a
Why do you need it?

--
Michael Culley
"Chris Fink" <ch*********@hotmail.com> wrote in message news:uV**************@TK2MSFTNGP12.phx.gbl...
Help....I am trying to use the System.net namespace to determine the
Internet (WAN) IP Address of my computer. No luck finding any such class so
far.
Any ideas?

Nov 15 '05 #5

P: n/a
If your Wan router is UPNP enabled, you can use the Upnp COM interfaces
(upnp.dll) available on W98, XP and higher.

Willy.

"Chris Fink" <ch*********@hotmail.com> wrote in message
news:uV**************@TK2MSFTNGP12.phx.gbl...
Help....I am trying to use the System.net namespace to determine the
Internet (WAN) IP Address of my computer. No luck finding any such class
so
far.
Any ideas?

Nov 15 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.