Recommend:
To the knowledge base
Knowledge document #893

Setting up static port sharing

You can configure static port sharing to allow other users in the internet to access certain server services in your FRITZ!Box home network, such as HTTP servers and remote maintenance servers or online games and internet applications.

Requirements / Restrictions

  • For IPv4 internet access, the FRITZ!Box must obtain a public IPv4 address from the internet service provider.
  • For IPv6 internet access, the FRITZ!Box must obtain an IPv6 address from the internet service provider and the server service or network device must support the IPv6 protocol.

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

1 Preparations

Determining ports and IP protocols

  1. Determine which ports and IP protocols are used by the server service or application to accept incoming connections. Refer to the manufacturer for this information, for example consult the manual.

Configuring the device's firewall

If the server service or application is installed on a device with its own firewall (for example Windows firewall), the firewall must also be configured:

  1. Configure the device's firewall according to the manufacturer's instructions to allow access to the server service or application from the FRITZ!Box home network.

2 Setting up port sharing in the FRITZ!Box

  1. Click "Internet" in the FRITZ!Box user interface.
  2. Click "Permit Access" in the "Internet" menu.
  3. Click on the "Port Sharing" tab.
  4. Click the (Edit) button for the (computer) name of the device for which the port sharing rule is to be configured. If you have not configured any sharings for the device yet:
    1. Click "Add Device for Sharing".
    2. Select the (computer) name of the device from the drop-down list "Device".

      Note:If you cannot select the device, you can select "Enter the IP address manually" and enter the IP address. Only devices that automatically obtain their IP settings (DHCP) from the FRITZ!Box are listed in the drop-down list.

  5. Click "New Sharing" in the "Sharing" or "Permit Access" section.
  6. Enable the option "Port Sharing".
  7. Select "Other application" from the drop-down list "Application".
  8. Enter a name of your choice for the port sharing rule in the "Name" field.
  9. Select the IP protocol (TCP, UDP, ESP or GRE) required by the server service or application from the drop-down list "Protocol".

    Note:The IP protocols ESP and GRE are only required for VPN server services.

  10. To enable port sharing for a single port, enter the number of the port used by the server service or application to accept connections in the "Port to device", "through..." ("to port"), and "Port requested externally (IPv4)" fields.
    • To enable port sharing for a port range:
      1. In the "Port to device" field, enter the number of the first port used by the server service or application to accept connections, and in the "to port" field, enter the number of last port.
      2. In the "Port requested externally (IPv4)" field, enter the number of the first port used by the server service or application to accept connections.
  11. Enable the sharing.
  12. Click "OK" to save the settings.

3 Setting up the FRITZ!Box for access over the internet

Register the FRITZ!Box with MyFRITZ! so that it can be reached on the internet at any time at a fixed MyFRITZ! address:

If the FRITZ!Box is registered with MyFRITZ!, devices for which port sharing has been configured can be reached using the MyFRITZ address with the shared port added to it.

Example:
An HTTP server for which the TCP port 12345 was assigned externally in the FRITZ!Box with the MyFRITZ! address pi80ewgfi72d2os42.myfritz.net can be reached via http://pi80ewgfi72d2os42.myfritz.net:12345.