Create Your Own Personal VPN with Hamachi

Sometimes commercial VPNs aren't ideal, and you'd like to create your own VPN service.

In this guide, I'll show you how to use Hamachi and Privoxy to create your own private and personal VPN.

However, before I dive into that, let's explore the pros and cons of creating your own VPN service using Hamachi.

Why You Should Create Your Own VPN

VPN was, however, originally developed mainly to allow business employees to securely log in to their company’s servers when away from the office:

User [-> ISP ->] company server.

It is possible to set up a home computer so that it runs much like a business VPN server. Allowing you to securely remote login to your home computer, and access the internet through its IP address:

User [-> ISP ->] home computer -> ISP -> internet.  (traffic in brackets [] is encrypted)

Advantages of VPN at home

  • Free – there is no need to pay for a third party VPN service
  • Secures your internet connection when using public WiFi hotspots
  • Can remotely and securely access content on your computer, and stream movies, music, etc. to a remote device
  • The home computer acts as a proxy. This is great for accessing geo-restricted web services when away from home. It can also be a very effective anti-censorship tool if the user is in a restrictive country. However, you will need a friend who is willing to set up a home server in a less restrictive country.

Countries such as China, and for geo-restricted services for example if you wanted to watch Hulu outside the US you would need a VPN. A private home VPN is also great for circumventing school, college or work restrictions. For information about a China VPN see our best VPN for China guide.

Disadvantages of VPN at home

  • The home computer acts as a proxy – you access the internet through your home computer’s IP address so any internet activity can be easily traced to that address. This also means that you cannot just change your apparent location (e.g. to a different country).
  • Although the connection between your remote computer and home VPN server is encrypted, your outgoing home internet connection is not. This means that your ISP (and anyone else who is watching) can easily monitor your internet activity.
  • You will need to keep your home computer on all the time, which will increase your electricity bills.

In short, setting up a private home VPN server offers many of the advantages of using a commercial VPN service. However, it does not provide privacy/anonymity when using the internet.

How to Use Hamachi to Create a Private VPN

By far the easiest way to set up a private VPN is to use LogMeIn Hamachi combined with Privoxy.

Hamachi is software which allows you to create virtual networks that operate like regular LANs.

It builds a ‘zero-configuration virtual private network’, which means that you do not have to worry about port forwarding or other complex configuration issues (which is definitely a very strong point in its favor). Furthermore, the 256-bit AES encryption is perfect.

The biggest drawback with Hamachi is that it is proprietary software (i.e. it is not open source). However, as we discussed above, a private Himachi VPN does not provide much privacy anyway. So this is probably not worth worrying too much about. If privacy is a major concern, Tor or a no-logs third-party VPN provider are much better options.

The basic version of LogMeIn Hamachi is free and is fully functional. However, only five member per network can use it. Furthermore, the free version will not run in the background on idle computers (as the paid version can).

LogMeIn Hamachi is available for Windows, OSX, and Linux (beta).

To remotely access the internet through our home PC running Hamachi, we will need Privoxy, a free open source web proxy. You could run Privoxy on its own, but all connections would be over unencrypted HTTP. This is why we are using Hamachi.

Privoxy is available for Windows, OSX, Linux, and iOS, and you can use it with any browser of your liking.

1. Setup Hamachi VPN

First, you'll need to set up Hamachi. Follow these steps to do so

  1. Download Hamachi on your home PC (choosing ‘Hamachi Unmanaged’ mode) and install. LogMeIn will nag you at various points to sign-up for a free account, but this can be ignored for now.
  2. Click the power button to get started, and enter a name for your client.
  3. Hit ‘Create a new network’, and give it a name and a password. Hit ‘Create’.
  4. Setup Hamachi on any other computers you to connect to the home VPN. Except this time, choose to ‘Join an existing network’ (that you have just created), rather than create a new one.

2. Set up Privoxy

You do this to allow secure remote connection to the internet.

  1. Download, install and launch Privoxy. In Windows, Privoxy launches as a blank window, but don’t worry as this is fine. You can even close the window and Privoxy will continue to run in your system tray. Right-click Privoxy in the system tray, and select Edit -> Main Configuration.
  2. Notepad will open Privoxy’s configuration file, called config.txt. Go to Edit -> Find, and search for ‘listen-address’. Put a # in front of the line to mark it as a comment, then below it add the line:
    listen-address [the IP address shown at the top of your Hamachi window]:8118
  3. Save and close config.txt.

3. Setup Your Browser Proxy Settings

The last step is simply to configure your browser’s proxy settings to point to the Hamachi network IP address., Port 8118 in our example.

In Firefox these settings can be found by going to Options -> Network tab -> Connection Settings

You can check everything is working by typing ‘’ into your remote computer’s browser search bar.

(If it says ‘Privoxy is not being used’ then something has gone wrong)

You are now using your home computer as a VPN server! All your remote browser’s traffic will go through your home computer. Therefore you will appear to originate from the IP address of your home computer.

Creating Your Own Private VPN Recap

setup is especially handy for regular travelers. It protects you when using public WiFi hotspots (which are great when mobile roaming charges cost a fortune). Furthermore, it allows you to access your regular internet services (such as Hulu, Netflix, or BBC iPlayer) using your own IP address. This should bypass the increasingly common practice of blocking VPN users from such services.

If leaving your own PC turned on all the time concerns you, another similar option is to roll your own VPN server on a VPS (Virtual Private Server). This is a bit trickier than using the Hamachi & Privoxy method above, but once set up does mean that you have permanent VPN instance running.

Written by: Douglas Crawford

Has worked for almost six years as senior staff writer and resident tech and VPN industry expert at Widely quoted on issues relating cybersecurity and digital privacy in the UK national press (The Independent & Daily Mail Online) and international technology publications such as Ars Technica.


  1. Marcelo

    on February 3, 2019

    Why Privoxy and no anothers Proxys? and ... Are there other alternatives to privoxy?

    1. douglas replied to Marcelo

      on April 5, 2019

      Hi Marcelo, Privoxy in this context is not acting as an actual proxy. It is simply providing a link between Hamachi and your the PC's internet connection. There may well be other software that can do this, but I know Privoxy.

  2. Cody Collyer

    on January 21, 2019

    Hi there, does this only act as a vpn for the browser that you change the proxy setting on or does it work as a vpn for all of the pc?

    1. Jay Ramirez replied to Cody Collyer

      on July 17, 2019

      I agree this is a good question

      1. Douglas Crawford replied to Jay Ramirez

        on July 22, 2019

        Hi Cody and Jay. Looking at this article some six years after I originally wrote it, I also agree this is a good question! The Hamachi software creates a true VPN connection between the remote computer and the home (server) PC. In order to proxy the remote computer's internet connection through home PC, however, you must setup Privoxy on the home PC and configure the remote PC's browser proxy settings as described. So you could view it as something of a hybrid between a VPN and a proxy, although all traffic goes through a true VPN tunnel.

  3. Sam Caley

    on November 9, 2018

    Hi, Great tutorial but I was a bit confused. Do we install privoxy on the computer that is inside the physical network that you want other computers to connect to, then change browser proxy settings on the computer you are using to connect. Or do we install privoxy on the computer we use to connect to the vpn. Thanks, Sam

    1. douglas replied to Sam Caley

      on November 12, 2018

      Hi Sam, The first one. You instal Privoxy on the "home" PC in order to provide a bridge between incoming proxy connections and Hamachi. You then configure your browser on devices you want to connect to the home PC.

  4. Maria Chakhtoura

    on August 12, 2018

    Hi Douglas, thanks for the amazing article! One quick question, you mentioned that the home outgoing traffic is not encrypted, so does this mean that sniffing is possible on the computer connected to the VPN?

    1. Douglas Crawford replied to Maria Chakhtoura

      on August 22, 2018

      Hi Maria, No - "sniffing" is not possible, but your home ISP can see which websites you visit.

Write Your Own Comment

Your comment has been sent to the queue. It will appear shortly.

Your comment has been sent to the queue. It will appear shortly.

Your comment has been sent to the queue. It will appear shortly.

  Your comment has been sent to the queue. It will appear shortly.

We recommend you check out one of these alternatives:

Large brand with very good value, and a budget price

The fastest VPN we test, unblocks everything, with amazing service all round

Longtime top ranked VPN, with great price and speeds

One of the cheapest VPNs out there, but still a good service