• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • 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
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

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