Solved

Finding IP of VPN connection (vs local IP)

Posted on 2006-11-01
10
209 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
  • 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

816 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now