Baza wiedzy
AVM Content
Configuring static port sharing in the FRITZ!Box
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 an IPv6 address or 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
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 so that the server service or application can be accessed.
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 you want to configure port sharing. 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.
Important:If a list of externally available IPv4 ports is displayed under "Port requested externally (IPv4)", the internet service provider only allows IPv4 port sharings for the ports given here. Your internet service provider can provide you with information on the available IPv4 ports.
- To enable port sharing for a port range:
- Enable the sharing.
- Click "Apply" to save the settings.
3 Setting up the FRITZ!Box for access over the internet
Register the FRITZ!Box with MyFRITZ!Net so that it can always be reached on the internet at a fixed MyFRITZ! address:
If the FRITZ!Box is registered with MyFRITZ!Net, 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.