One main ip, 40 additional ips, public ip is the main one?

Here is the issue
one server, 1 main ip, 40 additional public ips, but…
each docker container is using unique public ip
How to make docker containers show different unique ips when tested with https://www.myip.com/?