Understanding Ports on IP Addresses

  • Thread starter Thread starter fisico30
  • Start date Start date
AI Thread Summary
A port is a logical construct that works alongside an IP address to direct network traffic to specific applications or processes on a device. Each device on a Local Area Network (LAN) has a unique internal IP address, and ports allow multiple applications on a single device to communicate over the internet using that IP address. For example, when different applications like web browsers or games send and receive data, they use port numbers to ensure that the information reaches the correct application. In scenarios like setting up an IP camera, specifying a port number is crucial because the camera may need to communicate on a dedicated port, making it easier to manage network traffic and firewall settings. An IP camera can be considered a server if it provides a service, such as streaming video, but typically, a server is defined as a computer running specific software that offers services over the internet. Well-known ports are predefined for certain applications, such as port 80 for web servers, ensuring that requests are directed to the correct service.
fisico30
Messages
362
Reaction score
0
hello forum,

I am trying to understand what a port is.

Each device on a LAN is assigned an internal IP address. Does each device also have a port?

In some situations, like setting up an IP camera, we need to specify the port number. In other cases we seem to not worry about ports...

What is a port exactly? Why is the IP address not enough? Every device has a distinct IP address...

thanks
fisico30
 
Computer science news on Phys.org
A port is an addtional application or process specific code used in addtion to an ip address. Ports are also used so a router like device can allow multiple computers on the router's LAN to share an IP address on the internet (as opposed to the option of assigning each computer on a internet modem's LAN a separate IP address on the internet).. Wiki articles:

http://en.wikipedia.org/wiki/IP_port

http://en.wikipedia.org/wiki/Port_forwarding
 
Last edited:
Port is basically a logical construct that helps the computer figure out where the information is supposed to go. So for example, you have 3 browsers open, you have a torrent running and you are playing a game online.
When the information is going between computers its all just IP packets. What the system does is it tags on a port number to each packet and that port number uniquely refers to a program you have running.
So for example you go to www.physicsforums.com on browser 1, then your browser sends the request and attaches a reply port number to the reqest (say port 4444) then on browser 2 you go to www.google.com and the reply port is port 5555.
so when the packets containing the information you need come through, your system looks to see what the port number is, if its 4444 then it gets piped to browser 1 and physics forums shows up and google gets piped to browser 2. These reply ports are selected by the system and you don't decide.

This is a way for the system to keep track of what information goes where and what asked for it. Your IP Camera is slightly different as are online computer games. They generally have dedicated port numbers (making them easier to work with for the user, you can setup exceptions in firewalls and such if the numbers are static) as they ALWAYS want information on a specific port.

make sure you read the links rcgldr posted, they will give you a much more specific description, mine was a really basic one.
 
  • Like
Likes WWGD
Thank you!

Is the IP camera acting like a server, since it is providing content to another computer on the internet?

To be a server, does a system always need serving specific software?

thanks,
fisico30
 
If your definition of a server is anything that provides some service over the internet, then sure, by that definition the IP camera would be a server.
But generally to be called a server, you'd need to be a computer first. Say for example, you have your IP camera connected to a computer that's hosting an HTTP stream of whatever the camera is seeing. What's the server, the IP camera hosting to the single computer or the computer hosting the stream to the internet?

IMO, to be called server, you would need to be a computer that is providing some service Traditionally, this could be a file sharing service, a print server, a DHCP or DNS service host, database host, etc, but it could be anything.
 
The port number identifies which program on the target computer will receive the internet packet.

Some programs have been assigned default port numbers, typically called "well known ports". So, for example, if you install a web server, it will usually get installed to expect to receive client requests on port 80. If you install a second web server on the same machine, it will be forced to use a different port number.

These two internet addresses are the same:

http://harbormist.com

http://harbormist.com:80
 
I came across a video regarding the use of AI/ML to work through complex datasets to determine complicated protein structures. It is a promising and beneficial use of AI/ML. AlphaFold - The Most Useful Thing AI Has Ever Done https://www.ebi.ac.uk/training/online/courses/alphafold/an-introductory-guide-to-its-strengths-and-limitations/what-is-alphafold/ https://en.wikipedia.org/wiki/AlphaFold https://deepmind.google/about/ Edit/update: The AlphaFold article in Nature John Jumper...
Thread 'Urgent: Physically repair - or bypass - power button on Asus laptop'
Asus Vivobook S14 flip. The power button is wrecked. Unable to turn it on AT ALL. We can get into how and why it got wrecked later, but suffice to say a kitchen knife was involved: These buttons do want to NOT come off, not like other lappies, where they can snap in and out. And they sure don't go back on. So, in the absence of a longer-term solution that might involve a replacement, is there any way I can activate the power button, like with a paperclip or wire or something? It looks...
Back
Top