NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: network adapters, IP addresses, ports, domain names
steve%prd.co.uk@localhost (Steve Blinkhorn) writes:
> In a situation where a NetBSD machine (9.2 amd64 if it matters) has
> multiple network adapters each with multiple IP addresses
> corresponding to diverse domain names, to what are port numbers
> uniquely attached?
That question is too vague to be answered.
When a program calls socket/bind/listen on say port 1234, it can end up
listening on
INADDR_ANY:1234
INADDR6_ANY:1234
127.0.0.1:1234
::1:1234
ip-address-1:1234
ipv6-address-1:1234
or there can be multiple sockets. So it depends.
fstat -n is very useful here.
- Prev by Date:
network adapters, IP addresses, ports, domain names
- Next by Date:
Re: network adapters, IP addresses, ports, domain names
- Previous by Thread:
network adapters, IP addresses, ports, domain names
- Next by Thread:
Re: network adapters, IP addresses, ports, domain names
- Indexes:
Home |
Main Index |
Thread Index |
Old Index