We have a requirement that we need to run a service for N different IPs on a same port but have only one network interface.
Is the same possible in Python - I do not have any code to share
We have a requirement that we need to run a service for N different IPs on a same port but have only one network interface.
Is the same possible in Python - I do not have any code to share
this isn't really anything to do with Python, most operating systems allow you to associate multiple IP addresses with the same adapter. see here for some ways to do this under Linux
in Python you'd just bind to 0.0.0.0
(and/or ::
for IPv6) and, assuming you'd set things up elsewhere appropriately, it should just work