• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 218
  • Last Modified:

Finding IP of VPN connection (vs local IP)

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
Netlink2
Asked:
Netlink2
  • 6
  • 4
1 Solution
 
Netlink2Author Commented:
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
 
JackOfPHCommented:
Put a winsock control on your form.

then type the following

msgbox(winsock1.localhostIP)
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
JackOfPHCommented:
change it to this ...
Put a winsock control on your form.

then type the following

msgbox(winsock1.localIP)
0
 
Netlink2Author Commented:
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
 
JackOfPHCommented:
what did you see when you type ipconfig in the console?
Can you post some text data?
0
 
JackOfPHCommented:
or What did you see when you type ipconfig /all in the console?

Please post some sample data...
0
 
Netlink2Author Commented:
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
 
JackOfPHCommented:
If you need some code for that I can give you one
0
 
Netlink2Author Commented:
That would be great, thanks
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now