amirouche
amirouche

Reputation: 7883

How to test a peer to peer application locally?

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

Answers (2)

Robb1
Robb1

Reputation: 5025

You can try using Netkit. Netkit allows you to create a virtual laboratory with several peers on the same machine.

Upvotes: 0

the8472
the8472

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

Related Questions