Difference between external port and internal port in port forwarding?

What is the difference between "external port" and "internal port" in port forwarding?

If internal port is the port no. to which server is listening to for a specific (eg: HTTP request) service request; then how do you define external port?

1 Answer

In layman's terms: Your router has a public IP address (the "external" address). Your router also provides the network devices within your home network with private IP addresses (the "internal" addresses).

With the port it's the same thing. For example: a HTTP request will be send to your router's IP to port 80 (the "external port") and will be forwarded by your router to a device on your LAN, to the "internal port" (and one of your private/internal IP addresses).

A rule you could define in your router would be for example:

80 (external port) --forward to--> 192.168.100.100:80 (internal ip/port)

This would mean that all requests that reach the router on port 80 (from the internet) will be forwarded to the device with the IP 192.168.100.100 on the same port (port 80).

8

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like