They are both necessary for correctly routing traffic to its destination but have different scope. An IP address identifies a particular computer on the Internet. The port number identifies a particular program running on that computer.
Consider postal addresses by analogy. The street address and everything following identifies a particular residence or building, e.g. 1600 Pennsylvania Avenue, Washington DC. That is all the postal service needs to deliver a letter to its destination. However, once there it does not describe precisely _who_ the letter should go to. For that you need additional information – the name of the receipient. Only when this is also given – e.g. Bo the First Dog, 1600 Pennsylvania Avenue, Washington DC, can the letter be finally passed to the intended receipient.
The port number works in the same way – the IP address is enough to get the data to the right computer but does not say which application should receive the data on that machine. That is what the port number does. For example, by convention anything sent to TCP port 80 will be forwarded to a web server running on that machine. Anything sent to port 21 is directed to the FTP server instead. Without the port numbers the operating system would have no idea what data is intended for which application.
The port number works in the same way – the IP address is enough to get the data to the right computer but does not say which application should receive the data on that machine. That is what the port number does. For example, by convention anything sent to TCP port 80 will be forwarded to a web server running on that machine. Anything sent to port 21 is directed to the FTP server instead. Without the port numbers the operating system would have no idea what data is intended for which application.
In computer networks the endpoint or gateway through which two hosts(may be desktops,servers,routers,mobiles..etc…… that connects to network) communicate are called ports and the numerical identifier for the port is the port number. Each and every port have official assignment for specific use… For example the universal port number for HTTP is 80… similarly all have their unique assignment…
Whereas an ip address is an unique logical number in the format(xxx.xxx.xxx.xxx) assigned for all the computers when connected to the network.. These ip addresses are assigned automatically by their ISP(internet service provider)… It is just like an door number to uniquely identify each house you want to post a letter…
Difference :
let me explain by a scenario…. Assume that in your laptop you are simultaneously running gtalk, facebook and uploading your photos in ziddu… let your laptop’s ip address be 198.26.1.15(for example ) and let the gtalk be using the port number 165(for example) ,facebook be using 298(for example)… Now your frnd is sending a chat message to your gtalk… now the real work begun… your ip address acts as a address to tell where your laptop is connected and the port number tells whether the message is to be delivered to the gtalk or facebook…. Thus ip address is an universal address to your system and port number is an local address within the system for the processes…
In computer networks the endpoint or gateway through which two hosts(may be desktops,servers,routers,mobiles..etc…… that connects to network) communicate are called ports and the numerical identifier for the port is the port number. Each and every port have official assignment for specific use… For example the universal port number for HTTP is 80… similarly all have their unique assignment…
Whereas an ip address is an unique logical number in the format(xxx.xxx.xxx.xxx) assigned for all the computers when connected to the network.. These ip addresses are assigned automatically by their ISP(internet service provider)… It is just like an door number to uniquely identify each house you want to post a letter…
Difference :
let me explain by a scenario…. Assume that in your laptop you are simultaneously running and uploading your photos in ziddu… let your laptop’s ip address be 198.26.1.15(for example ) and let the gtalk be using the port number 165(for example) ,facebook be using 298(for example)… Now your frnd is sending a chat message to your gtalk… now the real work begun… your ip address acts as a address to tell where your laptop is connected and the port number tells whether the message is to be delivered to the gtalk or facebook…. Thus ip address is an universal address to your system and port number is an local address within the system for the processes…
An IP address identifies a particular computer on the Internet. Where as port number identifies a particular program running on that computer.The port number works in the same way – the IP address is enough to get the data to the right computer but does not say which application should receive the data on that machine. That is what the port number does.Without the port numbers the operating system would have no idea what data is intended for which application.
They are both necessary for correctly routing traffic to its destination but have different scope. An IP address identifies a particular computer on the Internet. The port number identifies a particular program running on that computer.
Consider postal addresses by analogy. The street address and everything following identifies a particular residence or building, e.g. 1600 Pennsylvania Avenue, Washington DC. That is all the postal service needs to deliver a letter to its destination. However, once there it does not describe precisely _who_ the letter should go to. For that you need additional information – the name of the receipient. Only when this is also given – e.g. Bo the First Dog, 1600 Pennsylvania Avenue, Washington DC, can the letter be finally passed to the intended receipient.
The port number works in the same way – the IP address is enough to get the data to the right computer but does not say which application should receive the data on that machine. That is what the port number does. For example, by convention anything sent to TCP port 80 will be forwarded to a web server running on that machine. Anything sent to port 21 is directed to the FTP server instead. Without the port numbers the operating system would have no idea what data is intended for which application.
Aravind kumar
The port number works in the same way – the IP address is enough to get the data to the right computer but does not say which application should receive the data on that machine. That is what the port number does. For example, by convention anything sent to TCP port 80 will be forwarded to a web server running on that machine. Anything sent to port 21 is directed to the FTP server instead. Without the port numbers the operating system would have no idea what data is intended for which application.
RANJIT VARADARAJAN
In computer networks the endpoint or gateway through which two hosts(may be desktops,servers,routers,mobiles..etc…… that connects to network) communicate are called ports and the numerical identifier for the port is the port number. Each and every port have official assignment for specific use… For example the universal port number for HTTP is 80… similarly all have their unique assignment…
Whereas an ip address is an unique logical number in the format(xxx.xxx.xxx.xxx) assigned for all the computers when connected to the network.. These ip addresses are assigned automatically by their ISP(internet service provider)… It is just like an door number to uniquely identify each house you want to post a letter…
Difference :
let me explain by a scenario…. Assume that in your laptop you are simultaneously running gtalk, facebook and uploading your photos in ziddu… let your laptop’s ip address be 198.26.1.15(for example ) and let the gtalk be using the port number 165(for example) ,facebook be using 298(for example)… Now your frnd is sending a chat message to your gtalk… now the real work begun… your ip address acts as a address to tell where your laptop is connected and the port number tells whether the message is to be delivered to the gtalk or facebook…. Thus ip address is an universal address to your system and port number is an local address within the system for the processes…
RANJIT VARADARAJAN
In computer networks the endpoint or gateway through which two hosts(may be desktops,servers,routers,mobiles..etc…… that connects to network) communicate are called ports and the numerical identifier for the port is the port number. Each and every port have official assignment for specific use… For example the universal port number for HTTP is 80… similarly all have their unique assignment…
Whereas an ip address is an unique logical number in the format(xxx.xxx.xxx.xxx) assigned for all the computers when connected to the network.. These ip addresses are assigned automatically by their ISP(internet service provider)… It is just like an door number to uniquely identify each house you want to post a letter…
Difference :
let me explain by a scenario…. Assume that in your laptop you are simultaneously running and uploading your photos in ziddu… let your laptop’s ip address be 198.26.1.15(for example ) and let the gtalk be using the port number 165(for example) ,facebook be using 298(for example)… Now your frnd is sending a chat message to your gtalk… now the real work begun… your ip address acts as a address to tell where your laptop is connected and the port number tells whether the message is to be delivered to the gtalk or facebook…. Thus ip address is an universal address to your system and port number is an local address within the system for the processes…
port no and ip address both are varied for each system
An IP address identifies a particular computer on the Internet. Where as port number identifies a particular program running on that computer.The port number works in the same way – the IP address is enough to get the data to the right computer but does not say which application should receive the data on that machine. That is what the port number does.Without the port numbers the operating system would have no idea what data is intended for which application.