Solved

Finding IP of VPN connection (vs local IP)

Posted on 2006-11-01
10
207 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
 
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
bunnyEars2 challenge 6 70
countHi challenge 25 85
Specific format 21 144
Macro Excel - Multiple If conditions 2 16
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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 …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

747 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

13 Experts available now in Live!

Get 1:1 Help Now