Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Get external IP

Posted on 2003-03-03
4
Medium Priority
?
342 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
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
This video teaches viewers about errors in exception handling.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

571 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