Solved

Finding IP of VPN connection (vs local IP)

Posted on 2006-11-01
10
212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
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 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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…

752 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