• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 182
  • Last Modified:

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-
0
SAbboushi
Asked:
SAbboushi
1 Solution
 
Fred MarshallCommented:
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now