To the knowledge base

Setting up a VPN connection to FRITZ!Box in Android

With VPN (Virtual Private Network), you can securely connect your Android device to your FRITZ!Box over the internet, without the risk of eavesdropping or tampering. This allows you to access all of the devices and data in your home network with your smartphone or tablet even when you are away from home.

In addition, when a VPN connection is active, all web requests are routed over the encrypted connection to the FRITZ!Box, which then resolves them over its internet connection. This means you can use sensitive services such as email or banking in public Wi-Fi hotspots with the same peace of mind as if you were connected to your FRITZ!Box via Wi-Fi at home.

Important:If you do not want to route web requests via your FRITZ!Box but only want to access devices and data in your home network, you can establish VPN connections quickly and easily with MyFRITZ!App to quickly and easily establish VPN connections.

Requirements / Restrictions

  • Android 4 or later is installed on the smartphone or tablet. In Android 12, it is not possible to set up VPN connections to the FRITZ!Box with all manufacturers. If you are using a device that you cannot set it up on (for example Google Pixel), use MyFRITZ!App to establish the VPN connection instead.
  • The FRITZ!Box must establish its own connection to the internet through a modem (for example a DSL or cable modem).
  • The FRITZ!Box must obtain a public IPv4 address from the internet service provider.

Note:All instructions on configuration and settings given in this guide refer to the latest FRITZ!OS for the FRITZ!Box.

1 Preparations

Configuring MyFRITZ!

With MyFRITZ! you can always access the FRITZ!Box over the internet, even if the FRITZ!Box receives a different public IP address from your internet service provider on a regular basis:

Adjusting the FRITZ!Box's IP network

Both ends of the VPN connection must have IP addresses in different IP networks. VPN communication cannot occur if the Android device is connected to a router (for example another FRITZ!Box) that uses the same IP network as your FRITZ!Box.

Note:All FRITZ!Boxes use the IP network 192.168.178.0 in the factory settings.

Assign an IP address to your FRITZ!Box that is different from the IP addresses of the routers you use to connect your Android device to the FRITZ!Box, for example 192.168.10.1 (subnet mask 255.255.255.0):

  1. Click "Home Network" in the FRITZ!Box user interface.
  2. Click "Network" in the "Home Network" menu.
  3. Click on the "Network Settings" tab.
  4. Click "Additional Settings" in the section "WAN setting" or "LAN Settings" to display all of the settings.
  5. Click the "IPv4 Settings" button.
  6. Enter the desired IP address and subnet mask.
  7. Click "OK" to save the settings and on the FRITZ!Box, confirm that the procedure may be executed if asked to do so.

2 Setting up a VPN connection in the FRITZ!Box

Set up a separate user for each VPN connection in the FRITZ!Box:

  1. Click "System" in the FRITZ!Box user interface.
  2. Click "FRITZ!Box Users" in the "System" menu.
  3. Click the (Edit) button for the user who intends to connect to the FRITZ!Box via VPN or set up a new user for the VPN connection:
    1. Click the "Add User" button.
    2. Enter a name and password for the user in the corresponding fields.
  4. Enable the option "VPN".
  5. Click "Apply" to save the settings and on the FRITZ!Box, confirm that the procedure may be executed if asked to do so.
  6. Now the FRITZ!Box sets up the VPN connection for the user and opens a window with the VPN settings of the user.

    Note:You can always call up the VPN settings again by clicking "Show VPN Settings" in the settings for the user under "System > FRITZ!Box Users".

3 Setting up a VPN connection in Android

  1. Set up the VPN connection on the Android device using the VPN settings displayed for the FRITZ!Box user in the FRITZ!Box user interface:

    Fig.: Setting up a VPN connection

4 Establishing a VPN connection

  1. Tap the "Settings" icon on the home screen of the Android device.
  2. Tap "Network & Internet" in the "Settings" menu.
  3. Tap "Advanced" and then "VPN".
  4. Tap the name of the VPN connection you set up (FRITZ!Box).
  5. If you are asked to enter a name and password:
    1. For the "Name", enter the name of the FRITZ!Box user (smith) who intends to connect to the FRITZ!Box via VPN.

      Note:If you select an entry from the word prediction for the username and Android automatically adds a space to it, delete the space.

    2. Enter the password for the FRITZ!Box user (secret1234) as the "Password".
  6. Tap the "Connect" button:

    Fig.: Establishing a VPN connection

  7. The VPN connection is established as soon as the VPN symbol is displayed in the status bar:

    Fig.: VPN connection is established