Reputation: 7883
I'm programming a P2P application from scratch and I'm wondering how it's possible to run several clients locally to be sure that every goes smooth including at the network layer.
Is possible without using something like lxc or docker?
I have not choosen whether it will work over UDP or TCP yet.
Upvotes: 5
Views: 1728
Reputation: 5025
You can try using Netkit. Netkit allows you to create a virtual laboratory with several peers on the same machine.
Upvotes: 0
Reputation: 43052
You can just run them on different ports or assign multiple IPs to a machine or use 127.0.0.1, 127.0.0.2, etc.
Upvotes: 2