Understanding Ports on IP Addresses

  • Thread starter Thread starter fisico30
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the concept of ports in relation to IP addresses, particularly in the context of networking and device communication. Participants explore the role of ports in facilitating connections between devices on a network, including specific applications like IP cameras and web servers.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant seeks to understand the definition and function of a port in networking, questioning why an IP address alone is insufficient.
  • Another participant describes a port as an application-specific code that allows multiple devices to share a single IP address, facilitating communication through routers.
  • A different participant explains that ports help direct information to the correct application on a device, using examples of multiple browsers and applications running simultaneously.
  • One participant inquires whether an IP camera acts as a server and what qualifies a system as a server, prompting a discussion on definitions and roles of devices in networking.
  • Another participant clarifies that a port number identifies which program on a target computer will receive internet packets, mentioning the concept of "well known ports" for certain applications.

Areas of Agreement / Disagreement

Participants express varying definitions of what constitutes a server, leading to differing views on the role of devices like IP cameras in networking. There is no consensus on the precise definitions or implications of ports and servers.

Contextual Notes

Some participants reference external sources for further information, indicating that the discussion may be limited by participants' varying levels of familiarity with networking concepts.

Who May Find This Useful

This discussion may be of interest to individuals seeking to understand networking fundamentals, particularly the roles of IP addresses and ports in device communication.

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   Reactions: 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
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
665
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 27 ·
Replies
27
Views
3K
Replies
3
Views
3K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
Replies
2
Views
2K
Replies
2
Views
1K
Replies
3
Views
2K