what's the difference between ip addresses and ports? why do we need the two? thanks it will help me a lot
what's the difference between ip addresses and ports? why do we need the two? thanks it will help me a lot
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
hey its very simple.....
sockets are the end to end connection between the two computers which are active - that is they can communicate with each other....
the ports are where the service is running - like http service will be running on port no 8080, ftp - 20 & 21, telnet on 23.
sockets are used to determine the pc to which u are going to communicate and the port is used to identify the service which u want or explore it.
for network programming u need both.....
port is the door through which u access different services and IP address is your identity card for accessing
when u get there, there is isn't any there there.