Skip to content

How your device reaches the internet, with and without a VPN

How your device gets an address, how your router and provider carry its traffic, and what changes when a VPN is in the way.

Step through it

Step 1 of 8

Your device gets a private address

When your device joins your network, your router gives it a private address such as 192.168.1.20, usually through DHCP. A DHCP reservation tells the router to give the same address to the same device every time.

Path: Your device to Your router

Read: Public and private IP addressesTry: Look at a private network

Tip: swipe, or use the left and right arrow keys, to turn the slides.

Step 1 of 8: Your device gets a private address

See the whole path at once
  1. Your devicePhone or computer
  2. Your routerHome or office
  3. Internet providerConnects you outward
  4. VPN serverOnly if you use a VPN
  5. WebsiteWhat you are visiting
Read every step as text
  1. 1.Your device gets a private address

    When your device joins your network, your router gives it a private address such as 192.168.1.20, usually through DHCP. A DHCP reservation tells the router to give the same address to the same device every time.

    Path: Your device to Your router

    Read: Public and private IP addressesTry: Look at a private network

  2. 2.The router swaps in its public address

    Private addresses are not used on the internet, so the router replaces your device's address with its own public address and remembers who asked, so it can return the reply. This is called NAT.

    Path: Your device to Your router to Internet provider

    Read: Public and private IP addresses

  3. 3.Your provider gives the router a public address

    Your internet provider assigns the router its public address. Some providers share one public address between several customers, which is called carrier-grade NAT, so the address is not always yours alone.

    Path: Your router to Internet provider

    Read: Public and private IP addresses

  4. 4.The request crosses networks to the website

    Your provider passes the request along, hop by hop, through other networks. Each is run by an organization with its own AS number, until the request reaches the website's network.

    Path: Internet provider to Website

    Read: What is an ASN?

  5. 5.The website sees your connection's address

    The website sees the public address of your connection, not your device's private one. From it, the website can work out roughly which network you are on, and little more.

    Path: Website to Your router

    Read: What is an IP address?Try: See the address websites see

  6. 6.With a VPN, a tunnel is set up first

    A VPN app on your device first reaches the VPN server over your normal connection, signs in, and builds an encrypted tunnel to it. This needs the server to be reachable, your login to be accepted, and your device to send its traffic into the tunnel.

    Path: Your device to Your router to Internet provider to VPN server

    Read: Signs of a VPN or proxy

  7. 7.The VPN server forwards your traffic

    Your requests travel through the tunnel to the VPN server, which sends them on to the website from its own address. Your provider can see that you are connected to a VPN server, but not what is inside the tunnel.

    Path: VPN server to Website

    Read: Signs of a VPN or proxy

  8. 8.The website sees the VPN's address instead

    Now the address the website sees belongs to the VPN server, so any location worked out from it is the server's. A website can only look for signs of a VPN, such as a data center network, so it can suggest one is in use but never be sure.

    Path: Website to VPN server

    Read: Signs of a VPN or proxyTry: Check your own connection

Go deeper