IIS 7 and Above
update IP addresses
Re: update IP addresses
Nov 13, 2019 03:47 PM|lextm|LINK
IP ADDRESS CONFIGURED ON IIS TO ACCESS WEBSITE
public IP address of VPS.
Sounds like you need to go back to a computer networking book first.
IIS won't be able to bind to the public IP address in most cases, as when Windows boots up it should be assigned a private IP address. IIS can only bind to such private IP addresses, or all unassigned, https://docs.jexusmanager.com/tutorials/binding-diagnostics.html#background
It would be the responsibility of a gateway to forward traffic from the public IP address to the private IP address. And for real world services, both public/private IP addresses in use should be fixed (or dynamic under certain strict conditions).
Hope the above is not too much for you to digest.