Make it available from the Internet: Port Forwarding - OpenWrt

Port forwarding can be used to publish computers in your own network on the Internet and thus make them accessible from the Internet. Anyone who uses a WLAN router for their home network to connect to the Internet has most likely set up a NAT (Network Address Translation) on it, either consciously or unconsciously. This means that the internal devices use private IP addresses and connect to the Internet via a common public IP address. To enable a connection from the Internet to a specific computer in the private LAN, a so-called port forwarding can be set up. But first, let's take a brief look at how a connection to the Internet is actually established via a router:

Connection to the Internet via a router

Private IP addresses are e.g. 192.168.x.x or 172.16.x.x or 10.x.x.x. In this example we use - 254 as private network.

The computers connect to the Internet via the router (default gateway) and share a public IP address (Public IP)

address of the own network can be found out in Windows via the command prompt.

To do this, enter the command ipconfig:

The IPv4 address in the output is the address of the computer, the default gateway is the address of the router, see also Network Commands.

Port forwarding: connection from the Internet to a computer in the internal network

a corresponding web service must be active on the computer to be accessed, this can be tested with localhost, see calling localhost.

Set port forwarding

Exemplary also for other routers, a port forwarding can be set in the free router firmware openWRT as follows: So in the browser to the IP address of the router (gateway, in the example
Firewall, Port Forwards, Add:

As in the schematic example: port 80 from the external interface should connect to the internal IP address port 80.

OpenWRT is a router firmware for various routers, see: Alternative Router Firmware: OpenWrt and no longer DD-WRT

What is the public IP of the Internet access?

The call from the Internet is made via the public IP address of the Internet connection.

After the public IP address of your internet access is used to call this page, we can show it here:
The current IP address of your Internet access is:

(see above pictures: "Public IP Internet access" )

positive Bewertung({{pro_count}})
Rate Post:
{{percentage}} % positive
negative Bewertung({{con_count}})

THANK YOU for your review!

Publication: 2022-08-08 from Bernhard | Übersetzung Deutsch |🔔

Top articles in this section

[DIY] Build your own low power NAS: cheap and energy-efficient

If you are looking for a NAS (Network Attached Storage) for home use, you cannot avoid the manufacturers Synology and QNAP. Both manufacturers deliver small NAS complete solutions with the option to synchronize data locally or via the Internet, and both do not exactly charge little money for the hardware used.

OpenWRT hardware recommendation - available devices 2023

OpenWRT provides a uniform and up-to-date software for different network devices like routers or access points and delivers countless additional setting options, software packages and functions. This makes it possible to combine new and old devices from different manufacturers and, among other things, to use low-cost hardware in a common WiFi, see: Setting up a home network: Extending LAN and WLAN | Improving.

OpenWRT - Display bandwidth of individual devices (monitor)

Most routers show an overview of all connected devices, some show a snapshot of the bandwidth used, but hardly any give an overview of the amount of data consumed over a certain period of time and certainly not by which device it was consumed. To make the consumed bandwidth a bit more transparent, I was looking for a way to historically record the bandwidth per device. The firmware of normal routers hardly offer a possibility here, differently when using an open source firmware, for example Open...

Questions / Comments

By continuing to browse the site, you agree to our use of cookies. More Details