🌐Network Port
Also known as Port, Port Number, TCP Port
A number that says which app should get the data. Each app has its own.
Think of it like
Think of it like a flat number in a big block. The street address finds the building, and the flat number finds the door.
Example
Jack runs an app on a laptop on port 3000. Jack opens localhost:3000 in the browser to see it.
Why it matters
Every server program needs a port. Closing the ones you do not use is a basic safety step.
Definition
Example code
url
http://localhost:3000/Common mistake
Key takeaways
- 1Picks the program. The IP picks the computer.
- 20 to 65535. Some numbers have fixed jobs.
- 3Programs listen. And answer what arrives.