Knowledge Base
AVM Content
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
- The FRITZ!Box must either obtain a public IPv4 address or an IPv6 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
Determining ports and IP protocols
- 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:
- 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
- Click "Internet" in the FRITZ!Box user interface.
- Click "Permit Access" in the "Internet" menu.
- Click on the "Port Sharing" tab.
- 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:
- Click "Add Device for Sharing".
- 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.
- Click "New Sharing" in the "Sharing" or "Permit Access" section.
- Enable the option "Port Sharing".
- Select "Other application" from the drop-down list "Application".
- Enter a name of your choice for the port sharing rule in the "Name" field.
- 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.
- 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:
- 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.
- In the "Port requested externally (IPv4)" field, enter the number of the first port used by the server service or application to accept connections.
- To enable port sharing for a port range:
- Enable the sharing.
- 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.