Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 219
  • 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
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best 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
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

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

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