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

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?

1 Answer

Tee solution I found:

  • set up rules to run when connecting to the local or remote networks based on:

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like