I need to be able to run python code on each "node" of the network so that I can test out the code properly. I can't use different port numbers and run the code since I need to handle various other things which kind of force using unique IP addresses.
I think vmware or virtual box can help you.
Is there a way to simulate a network so that I can test my p2p network code written in python?