VPN Server on Vista /Windows7 using remote detault gateway

I am trying to setup a VPN Server on my Vista and Windows 7 and it connects ok from remote location.

My Problem is that i want to use the remote site (my home) as default gateway due to me running applications that check mp ip and it needs to match my home ip to run when I am out traveling.

on the host PC i only seem to be able to set IP address, and not Default gatway, so when i try to connect to my host from remote site, it connects, it tries to use the remote default gatway but as not set, i get no internet.

I have tried to right click on my Host VPN and Properties again, but I can only set IP

Is there a way around this?
Who is Participating?
QlemoConnect With a Mentor Batchelor and DeveloperCommented:
Issue a    route add mask    while connected (in a command prompt).
QlemoBatchelor and DeveloperCommented:
I don't get why you should not be able to set the default gateway at your host PC? In the TCP properties of your network driver, you can set IP, netmask, default gateway, and two DNS servers.

However, I don't think that helps you. You still need to set up your host as a router to allow to use the remote default gateway. Else it allows only access to the host itself.
morten444Author Commented:
Hi Thanks for reply
For the incomming connection, I can only set IP address. Nothing else.
See attached picture

I was sure if I conected to my hope PC via VPN, I become on lan just like i was sitting at home.
I would get an IP of my local lan (I do get this) and if I configure default gateway, I should be about to write my home routers IP as gatway and I should be able to use internet that way.
Is that not correct?

I have setup VPN host on Win2003 and it works with that. I just dont have a Server here so therefore I am trying with Windows Vista/7
Managed Security Services Webinar - March 15

Selecting the right managed security services platform to grow your business can be a huge undertaking. Join WatchGuard and Frost & Sullivan in an upcoming webinar as we dive into the key elements of selecting a vendor platform and partnership to fuel a successful MSSP business.

QlemoBatchelor and DeveloperCommented:
You cannot provide the default gateway in "Incoming connections", that much is true.
The issue is that the host PC will either try to push its own IP or its configured LAN default gateway to the connecting client. RAS should do that itself if you tick the "Use remote gateway" setting in your RAS client config.
If you cannot get it to work, you will need to set your default gateway manually while connected. But that is unlikely and cumbersome.
Have you tried ipig ? its free and easy to setup :)


You need to get the iping express server and the client.
morten444Author Commented:
I have tried to setup ipig. Seems very easy so i feel quite stupid having issues with it!!

on my lan i have a vista and windows 7 pc

Installed on vista
created user and pass
no cadlock infront of username
server port 11888
rest default

Installed in Windows 7
Typed in my user and pass
Under "Advanced settings" i changed pc to local ip port 11888 (vista pc)

I now try to connect but it says "unknown server
I tried the other way around (vista as client and windows 7 as server) same thing

I then thought that there might be problem on using it on lan

I configured server using WAN ip
In router i forwarded all trafic on 11888 to
Logged onto a remote server away from home
Installed the Client
Typed in user and pass and WAN ip
Still exactly the same thing

I must be missing something
My Windows 7 works as webserver, windows vpn can dail in, rdp can access in through firewall. I have no firewall on my pc

Does it soulds right what I am doing or am i missing something
You can also toggle the "Use default gateway on remote network" on your VPN settings (see screenshot). Use default gateway on remote network
morten444Author Commented:
Thanks for the reply :)
Yes I have the same setting enabled. Thats why my internet is not working when connected, becasue there is no way I can see how to assign "default gateway" on the server for the VPN connection
If i do a "ipconfig" when connected, It shows gateway as and I can not figure out how to set that.

On a normal netcard, you right click -Properties - TCP/IP - Properties and type it in.
On the VPN connection, thats not an option.

How do you do this?

Kind Regards
There seems to be some other issue with your connection or router. Id recommend trying something else.


This might solve all your routing issues. Install Teamviewer on your host computer and set up a user name and password.

Then install the client on your client pc and connect to the host using the VPN option.

I have used this some time back and it worked fine. Give it a shot and try it out. Its free for home users.
Don't know if this will work or not but you can add another default gateway by clicking on the advanded button in the TCP/IP properties box.  Add the default gateway of your home network on your client computer.  It's worth a shot.  (make sure you current default gateway is in there as well or you may not connect to the vpn at all.)

Also when you are connected to the vpn run a cmd prompt and ipconfig -all.  See what shows upfor a default gateway and ip address.  
QlemoBatchelor and DeveloperCommented:
Adding another default gateway is always useless with Windows. The intended behaviour is that if the primary gateway is found dead (unresponsive or unreachable), the secondary should be used. But that is not working.
morten444Author Commented:
That did it for me.
Yeah, that adds another gateway.  check your ipconfig /all and you will see it listed under default gateways.
QlemoBatchelor and DeveloperCommented:
Not exactly. There has been no default gateway defined before. So the route add does not add an additional but the only gateway. As I have told already, additional gateways do not work.
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.

All Courses

From novice to tech pro — start learning today.