st...@prd.co.uk (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.

Reply via email to