Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Locating Your Wan IP using VB

Status
Not open for further replies.

OC2

IS-IT--Management
Apr 2, 2001
59
0
0
SG

The normal code is the obvious winsock1.localip to determine your internal IP address, but this doesnt locate the ip address of your WAN.

Does anyone know the code to make this happen?


And additionally once locating the WAN IP how for example would you communicate an IP talker from the WAN IP to the internal ip of computer IP 192.168.2.xx?

Any help is much apprieciated.

 
Bump.

Worked out the additional problem, Needed to access the 192.168.2.1 setup screen and configure my virtual servers public ports.

 
192.168 is a private ip range. For any computer to access your computer that is outside your internal network your firewall/gateway/router has to have translation set up. Some form of IPTables or IPChains. In simple terms the computer that is the access point of your internal network has to have be told "When a request comes in on Port nn on interface nnn.nnn.nnn.nnn forward that on to 192.168.2.xx port nn"

Your second post doesn't read very well. I'm not sure what you are asking/saying.

Contact your network admin as they are the ones that should be setting this up.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top