?
Solved

Get external IP

Posted on 2003-03-03
4
Medium Priority
?
339 Views
Last Modified: 2013-11-13
Hi VB experts,

I just need a way to get the external IP address under a network.

If a create a Winsock the IP address it return is just the local IP, how can I resolve the external IP with only VB? Is that possible? If yes any comments will be very appreciated.

Thanks in advance.

0
Comment
Question by:jeromeMtlQcCa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 1

Expert Comment

by:FCouples
ID: 8069797
Well you can do it through a VB web browser by setting the browser to go to "www.ipchicken.com".  This will tell you your IP, but technically VB won't understand it unless you can find a way to make it copy it from the website.

Lots of Luck!

-Jeff
0
 

Expert Comment

by:CleanupPing
ID: 8947102
jeromeMtlQcCa:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
0
 
LVL 1

Accepted Solution

by:
FCouples earned 200 total points
ID: 8947352
Connect to a server outside of your network running a TCP/IP winsock, have it listen for connections.  Connect to it, and on "Connection Request" Accept the connection and SendData "Your IP: " & Winsock1.RemoteHostIP.  Then disconnect.
0
 

Author Comment

by:jeromeMtlQcCa
ID: 8952662
Thanks a lot, this is exactly wath I did a few months ago.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question