DD-WRT :: View topic - Understanding Port Forwarding, UPnP, and why/when needed? (2024)

DD-WRT Forum Index -> General Questions

View previous topic :: View next topic

AuthorMessage
Fried Chicken
DD-WRT User

Joined: 12 Jun 2019
Posts: 178
Location: Texas


Posted: Thu Aug 29, 2024 16:31 Post subject: Understanding Port Forwarding, UPnP, and why/when needed?
Command and Conquer Generals & Zero Hour is the greatest game ever made of all time.

It's from 2003 and comes with all of the trappings of 2003 online multiplayer.
One common theme is an inability to connect between players, and the common answer is always: "Enable Port Forwarding to a Static IP Address".

This has been a common theme for old computer games, and even new computer games or programs with connectivity issues have port forwarding as a troubleshooting step.

Thing is I now have neither port forwarding nor UPnP enabled and it works.
Additionally, how is port forwarding handled if you have multiple computers needing the same ports? If I forward sftp port 22 to one computer, I can still connect via sftp from other computers... in practice.

This all seems a bit voodoo and voodoo doesn't exist in computer science/engineering, even if people now try with AI.... and AI isn't playing a role here.


_________________
Google is Spyware
Back to top
DD-WRT :: View topic - Understanding Port Forwarding, UPnP, and why/when needed? (7)
Sponsor
DD-WRT :: View topic - Understanding Port Forwarding, UPnP, and why/when needed? (8)
D.F.Cruizer
DD-WRT User

Joined: 14 May 2023
Posts: 134


Posted: Thu Aug 29, 2024 20:11 Post subject:
Borrowing a metaphor.

A Port Number on a computer is like a particular runway (say R) of an airfield. And runway R is DESIGNATED for a specific plane (say P), by prior agreement, between airfield administration and airplane pilots. When P is using R, no other plane can use runway R due to potential clashing.

While an airfield may have a few runways (physical constraints), a computer has plenty of ports. It's 65,535 port (numbers) although not all are free for discretionary use. For example, port 80 is for http, 443 for https, 20 & 21 are for FTP.

Roughly, this is how computer ports work. See the linked article for further info.
https://www.cloudflare.com/learning/network-layer/what-is-a-computer-port/

Deciphering my metaphor. Airplanes are apps, airfield is your PC and you're the administrator who is asking questions. DD-WRT :: View topic - Understanding Port Forwarding, UPnP, and why/when needed? (11)

Good luck.

Back to top
DD-WRT :: View topic - Understanding Port Forwarding, UPnP, and why/when needed? (14)
Fried Chicken
DD-WRT User

Joined: 12 Jun 2019
Posts: 178
Location: Texas


Posted: Thu Aug 29, 2024 20:59 Post subject:
D.F.Cruizer wrote:
Borrowing a metaphor.

A Port Number on a computer is like a particular runway (say R) of an airfield. And runway R is DESIGNATED for a specific plane (say P), by prior agreement, between airfield administration and airplane pilots. When P is using R, no other plane can use runway R due to potential clashing.

While an airfield may have a few runways (physical constraints), a computer has plenty of ports. It's 65,535 port (numbers) although not all are free for discretionary use. For example, port 80 is for http, 443 for https, 20 & 21 are for FTP.

Roughly, this is how computer ports work. See the linked article for further info.
https://www.cloudflare.com/learning/network-layer/what-is-a-computer-port/

Deciphering my metaphor. Airplanes are apps, airfield is your PC and you're the administrator who is asking questions. DD-WRT :: View topic - Understanding Port Forwarding, UPnP, and why/when needed? (17)

Good luck.

I really like that analogy... What if I have two devices on the network who both want to use port 22 for FTP transfers for example?


_________________
Google is Spyware
Back to top
DD-WRT :: View topic - Understanding Port Forwarding, UPnP, and why/when needed? (20)
D.F.Cruizer
DD-WRT User

Joined: 14 May 2023
Posts: 134


Posted: Thu Aug 29, 2024 22:24 Post subject:
Sure, both PCs use the same port 22 but each packet of data (TCP or UDP) sent from each PC is also added its specific IP address for Layer 3 communication, to distinguish it from the other's.

This way, the router knows which PC a packet is coming from/to (using Layer 3). A switch uses MAC addresses (Layer 2).

This is essentially where the Open Systems Interconnection (OSI) kinda takes over. I'd suggest have a good read on OSI.

Good luck.

(edited for clarity)

Last edited by D.F.Cruizer on Fri Aug 30, 2024 19:03; edited 1 time in total

Back to top
DD-WRT :: View topic - Understanding Port Forwarding, UPnP, and why/when needed? (25)
Per Yngve Berg
DD-WRT Guru

Joined: 13 Aug 2013
Posts: 6918
Location: Romerike, Norway


Posted: Fri Aug 30, 2024 13:06 Post subject:
The known ports only applies to servers. The Client pick a random port above 1024 as source and connects to the known port as destination.
Back to top
DD-WRT :: View topic - Understanding Port Forwarding, UPnP, and why/when needed? (30)
DD-WRT Forum Index -> General QuestionsAll times are GMT

Navigation


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
DD-WRT :: View topic - Understanding Port Forwarding, UPnP, and why/when needed? (2024)
Top Articles
Iowa Style Maid-Rite Sandwiches Recipe
Lettuce Sandwich Recipe - Healthy Recipes Blog
Kool Online Offender Lookup
Tripadvisor London Forum
BEL MOONEY: Should I leave this boorish, bullying layabout?
glizzy - Wiktionary, the free dictionary
Mimissliza01
Umc Webmail
When Does Dtlr Close
Cbse Score Conversion 2022
M&T Bank Atm Locations Near Me
Lesson 10 Homework 5.3
Busted Newspaper Williams County
Elizabeth Holmes Fappening
Sunday Td Bank
Blue Beetle Showtimes Near Regal Independence Plaza & Rpx
Nbl Virals Series
Food Delivery Near Me Open Now Chinese
636-730-9503
Walgreens Shopper Says Staff “Threatened” And “Stalked” Her After She Violated The “Dress Code”
Craigs List Plattsburgh Ny
Gestalt psychology | Definition, Founder, Principles, & Examples
Winta Zesu Net Worth
Why Do Dogs Wag Their Tails? Scientists Examine the Endearing Behavior
Runescape Abyssal Beast
Aflac Dulles Synergy
Dreaisback
Wmu Academic Calendar 2022
Burlington Spectrum Tucson
O'reilly Car Parts Near Me
Nc Scratch Off Left
Examination Policies: Finals, Midterms, General
Jessica Renee Johnson Update 2023
Meagan Flaherty Tells Kelli Off
O2 eSIM guide | Download your eSIM | The Drop
Chihuahua Adoption in Las Vegas, NV: Chihuahua Puppies for Sale in Las Vegas, NV - Adoptapet.com
Managementassistent directie Wonen
Vhl Spanish 2 Answer Key
Rage Of Harrogath Bugged
Son Blackmailing Mother
Whats On Metv Now
Craigslist Pets Inland Empire
Christina Cox Measurements
Espn Ppr Fantasy Football Rankings
Walgreens Bunce Rd
Rubrankings Austin
Mike Huckabee Bio, Age, Wife, Fox News, Net Worth, Salary
Craig List El Paso Tx
18 Awesome Things to do in Fort Walton Beach Florida 2024 - The Wanderlust Within
8X10 Meters To Square Meters
Craigslist Boats Rochester
Dragon Ball Super Super Hero 123Movies
Latest Posts
Article information

Author: Arline Emard IV

Last Updated:

Views: 6449

Rating: 4.1 / 5 (72 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Arline Emard IV

Birthday: 1996-07-10

Address: 8912 Hintz Shore, West Louie, AZ 69363-0747

Phone: +13454700762376

Job: Administration Technician

Hobby: Paintball, Horseback riding, Cycling, Running, Macrame, Playing musical instruments, Soapmaking

Introduction: My name is Arline Emard IV, I am a cheerful, gorgeous, colorful, joyous, excited, super, inquisitive person who loves writing and wants to share my knowledge and understanding with you.