PC Review


Reply
Thread Tools Rate Thread

Batch file to Capture VPN IP address

 
 
=?Utf-8?B?RGF2aWQ=?=
Guest
Posts: n/a
 
      6th Oct 2005
I need to write a batch file in which I need to capture and then be able to
use that IP address in the following manner:

route 10.0.0.0 mask 255.0.0.0 {IP Address Here}

The catch is that I need the VPN IP address and I would have two. The
primary IP which was used to connect to the internet, then the VPN address.

Thanks for your help in advance.
 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      6th Oct 2005

"David" <(E-Mail Removed)> wrote in message
news:99C77509-16C5-4F3E-A159-(E-Mail Removed)...
> I need to write a batch file in which I need to capture and then be able

to
> use that IP address in the following manner:
>
> route 10.0.0.0 mask 255.0.0.0 {IP Address Here}
>
> The catch is that I need the VPN IP address and I would have two. The
> primary IP which was used to connect to the internet, then the VPN

address.
>
> Thanks for your help in advance.


If you post the output of the command

ipconfig /all

end state exactly which address you wish to extract then
someone can probably help you.


 
Reply With Quote
 
Yves Leclerc
Guest
Posts: n/a
 
      6th Oct 2005
What are you trying to do? If you need to "route" the Internet traffic
while you are using the VPN access, un-check "Use default gateway on
remote.." from within the "advanced" settings of the VPN client.


"David" <(E-Mail Removed)> wrote in message
news:99C77509-16C5-4F3E-A159-(E-Mail Removed)...
>I need to write a batch file in which I need to capture and then be able to
> use that IP address in the following manner:
>
> route 10.0.0.0 mask 255.0.0.0 {IP Address Here}
>
> The catch is that I need the VPN IP address and I would have two. The
> primary IP which was used to connect to the internet, then the VPN
> address.
>
> Thanks for your help in advance.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get MAC address from command line / batch file in Vista? Dave R. Microsoft Windows 2000 CMD Promt 20 13th Sep 2009 03:37 PM
Setup local printer with IP address with batch file kwstroud Windows XP Print / Fax 1 4th Jan 2008 08:33 PM
Can a batch file capture its own location? David Mayerovitch Windows XP Help 0 18th Nov 2006 04:36 PM
Batch file that will capture screen and ftp asarangan@yahoo.com Windows XP Basics 2 19th Mar 2006 01:01 PM
Use reg.exe to capture value in a variable for batch use? Craig Microsoft Windows 2000 Registry 2 29th Sep 2003 01:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:29 AM.