Solved

Finding IP of VPN connection (vs local IP)

Posted on 2006-11-01
10
213 Views
Last Modified: 2013-11-13
Hi, I use Microsoft VPN to connect/login from a remote computer to SBS2003. The local IP is something like 192.168.0.xxx, the VPN IP is something like 10.0.0.xxx. If I use winsock to get the IP I get the 192.168.0.xxx, but what I'm looking for is the 10.0.0.x address. I need this to VNC in to the client who's obtaining IP's via DHCP.

0
Comment
Question by:Netlink2
[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
  • 6
  • 4
10 Comments
 
LVL 15

Expert Comment

by:JackOfPH
ID: 17854826
0
 
LVL 1

Author Comment

by:Netlink2
ID: 17862680
Thanks for that, that tells me the DHCP server address, do you know how to get the local IP that was issued by the DHCP server ?.
0
 
LVL 15

Expert Comment

by:JackOfPH
ID: 17864173
Put a winsock control on your form.

then type the following

msgbox(winsock1.localhostIP)
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 15

Expert Comment

by:JackOfPH
ID: 17864197
change it to this ...
Put a winsock control on your form.

then type the following

msgbox(winsock1.localIP)
0
 
LVL 1

Author Comment

by:Netlink2
ID: 17864249
Yes, I've tried that, it gives the local IP of 192.168.0.xxx, but what I need is the VPN I of 10.0.0.xxx.
0
 
LVL 15

Accepted Solution

by:
JackOfPH earned 500 total points
ID: 17871294
what did you see when you type ipconfig in the console?
Can you post some text data?
0
 
LVL 15

Expert Comment

by:JackOfPH
ID: 17871350
or What did you see when you type ipconfig /all in the console?

Please post some sample data...
0
 
LVL 1

Author Comment

by:Netlink2
ID: 17877855
I see the address I want in ipconfig, so I suppose it's just a matter of parsing it via a text file. Thanks.
0
 
LVL 15

Expert Comment

by:JackOfPH
ID: 17878126
If you need some code for that I can give you one
0
 
LVL 1

Author Comment

by:Netlink2
ID: 17878905
That would be great, thanks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to implement Singleton Design Pattern in Java.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

617 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