How to use hamachi IP when connecting remotely, and local IP when connected locally

0

Using hamachi and windows 10, but may be relevant to other VPNs to

I access a server either locally on the lan, or remotely over hamachi VPN

Is there a method to make the switch seamless? something like a virtual IP address that can be failed over between these IPs?

Ophir Yoktan

Posted 2015-10-14T21:39:12.653

Reputation: 230

Answers

0

Tee solution I found:

  • set up rules to run when connecting to the local or remote networks based on: https://superuser.com/a/262880/68818

  • the rules trigger a script that overwrites etc\hosts with a file that is suitable for the relevant enviroment

Ophir Yoktan

Posted 2015-10-14T21:39:12.653

Reputation: 230