They can share the same router and therefore have the same public IP.
Comment on Phones have unique phone numbers, why dont computers have unique computer-numbers?
JesterIzDead@lemm.ee 1 year agoNo, computers can’t share IPs
IHateReddit@lemmy.world 1 year ago
JesterIzDead@lemm.ee 1 year ago
Yes, but no. The public IP is that of the router, which NATs packets to each host, each of which must have a unique private IP. The public IP does not reference or identity hosts behind the router.
lemmyng@lemmy.ca 1 year ago
A phone number does not uniquely identify a phone either.
lemmyng@lemmy.ca 1 year ago
Sure they can. If you put a network behind a router they will share an egress/ingress IP. And there are certain high availability setups where computers share IPs in the same subnet for hot/standby failover.
JesterIzDead@lemm.ee 1 year ago
Yes, but no. The public IP is that of the router, which NATs packets to each host, each of which must have a unique private IP. The public IP does not reference or identity hosts behind the router. And that’s not how HA works. Only one host is assigned the active IP at one time.
lemmyng@lemmy.ca 1 year ago
When you do call routing with a PBX each phone has an unique extension, equivalent to the private IP of each host.
Oh, and there’s also anycast, which is literally multiple active devices sharing an IP.
JesterIzDead@lemm.ee 1 year ago
You’d have to know more about BGP to know any cast doesn’t function as you think it does