473,443 Members | 1,989 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Get external/public IP address

Hi

How I can get external(public) IP address by AxWinSock control?? When I
take

msgbox(axWinsock1.LocalIp) I get 192.168.0.2, because I'm on NAT

Any ideas??

Thx Mrozu

Nov 23 '05 #1
5 2729
Hi,

http://www.vb-tips.com/default.aspx?...f-a311e93c13c3

Ken
------------------
"Mrozu" <gm****@yahoo.pl> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Hi

How I can get external(public) IP address by AxWinSock control?? When I
take

msgbox(axWinsock1.LocalIp) I get 192.168.0.2, because I'm on NAT

Any ideas??

Thx Mrozu

Nov 23 '05 #2
ooo yes it's good way but what when www.whatsmyip.com stop working??
any independent ideas:>

Thx Mrozu

Nov 23 '05 #3
Mrozu wrote:
ooo yes it's good way but what when www.whatsmyip.com stop working??
any independent ideas:>


If you have a CGI script on a web server somewhere, you could query that for
the IP address it sees from you.

Andrew
Nov 23 '05 #4
Ok so without use web page i can't get my external ip??:> it is varey
funny i think:)

Mrozu

Nov 23 '05 #5
Mrozu wrote:
Ok so without use web page i can't get my external ip??:> it is varey
funny i think:)


It isn't your external IP: it belongs to the NAT device.

Andrew
Nov 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ida | last post by:
Hi, I am trying to build an dll with Microsoft Visual C++ but during the linking phase I get linking errors. Script.obj : error LNK2019: unresolved external symbol __imp__PyString_AsString...
1
by: S. van Beek | last post by:
Dear reader, In case an application is ussing an external model library you have to address this external model library in your application. This addressing takes place in a module of the...
6
by: Olivier Lechenne | last post by:
I am converting some projects from VS 6.0 to VS .NET 2003 and I get a linker error error LNK2001: unresolved external symbol ___security_cookie or error LNK2001: unresolved external symbol...
6
by: Marty | last post by:
Hi, I would like to have my class to execute eventually an outside function. I was thinking to pass to my class constructor a delegate object that would be later used in my class to be...
5
by: Andreas | last post by:
I am working with three computers, my developing computer, a Web Server and a Mail Server (Exchange). I am trying to send a email from the Web Server via the Mail Server to a valid email address...
1
by: Lorne Smith | last post by:
Hi, I'm running a small network and need to get the external IP address of my router so that I can update my DNS forwarding service should my IP change (it's a dynamic one)... I can get the IP...
5
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
1
by: iwdu15 | last post by:
Hi, im trying to get the public IPAddress of a computer programmatically. I tried using Net.DNS.GetHostEntry(Net.Dns.GetHostName()).AddressList(0) but that only gives the inter-network...
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: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.