Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Finding IP of VPN connection (vs local IP)

Posted on 2006-11-01
10
Medium Priority
?
216 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
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!

 
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 1500 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

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…
This article will show, step by step, how to integrate R code into a R Sweave document
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
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

824 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