Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Adding a temporary route

  • Please log in to reply
No replies to this topic

#1 Eugen


  • Members
  • 10 posts
  • Local time:02:17 PM

Posted 09 March 2015 - 12:33 PM

Mod Edit: moved from XP to Neworking ~~boopme
Hello everyone,
I'm trying to connect to a VPN server and at the same time adding a temporary route. Here is the code in a bat file:

@echo off
@rasdial VPN username password
Unfortunately the code is not working, I'm conencting to the VPN server but can't reach
Because the VPN server gives me random IP's everytime I connect I cannot set the route rule properly.
If I know the IP I'll be given for example and If I add the folllowing rule: ROUTE ADD MASK everything works as supossed to, now my question is what is the correct route rule when I don't know the IP I'll have?
Thank you.

Edited by boopme, 09 March 2015 - 01:04 PM.

BC AdBot (Login to Remove)


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users