Is there a difference between these socket addresses re: my pc

Can someone please help me understand the difference between these socket addresses if they are used on my pc:
:::80
0.0.0.0:80
127.0.0.1:80
192.168.0.5:80 (assuming the ip address has been assigned to my pc nic)

Open in new window


Thanks-
SAbboushiAsked:
Who is Participating?
 
Fred MarshallConnect With a Mentor PrincipalCommented:
If you consider that a port or socket is like an address extension then each is different because the address is different.
It's like saying:

101 Main ST, Apt A
202 Main ST, Apt A
409 Elm ST. Apt A

There is no difference between the "Apt A" part of each address.  But it refers to a different place doesn't it?

But, if the notation is like this:

101 Main ST, Apt A
101 Main Street, Apt A
101 Main Street, Apartment A
They all mean the same thing don't they?

127.0.0.1 is the loopback address for the computer its being used on.
0.0.0.0 is the catch all meaning "all addresses".

I hope this helps.
0
 
SAbboushiAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.