473,324 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Find External (WAN) IP Address

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
5 3155
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Sune | last post by:
Hi, previously I used Eclipse CDT for compiling my files just to get started with C and leave C++ behind. Now it's time to get a little more serious so I've moved my files to a new workplace and...
12
by: Souljaz | last post by:
Hi, how to find IP address. Thanks
6
by: Dave P | last post by:
Need to get my wan ip from my desktop application any examples TIA Dave
8
by: MrNobody | last post by:
I need to find out the IP address of my local network on the WAN. There is alot of information on getting my local machine IP address but I can't find anything for getting the IP address my network...
12
by: smerf | last post by:
I have searched high and low (and even in some places I'd like to forget I ever saw) for the information that will tell me exactly how the Nat2Nat server for UltraVNC works (not just a vague...
1
by: danknauf | last post by:
I have a webserver which is behaving strangely. The server is a fresh copy of Windows 2003 running IIS with default options + Active Server Pages installed. The server is connected to a Linksys...
3
by: RFD | last post by:
I've been slaving at this problem for over a week, and would appreciate some help from you kind folks. Basic Problem: I have made a server program and a client program. When I try to use the...
4
by: kimiraikkonen | last post by:
Hi, I'm connected through router and i have a local ip address as well starting with 192.168.x.x. However i can read local ip address fine with that code: Dim strHostName As String Dim...
4
by: remya1000 | last post by:
i'm using VB.NET 2003 Application program. i need to get External IP Address (internet). i searched internet and found come codes and tried that... i tried this code... but it returned my internal...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.