I have to test some java network application. Each client-app is identified by his IP. So the simpliest way to test it is to run some machines or VMs... But each instance of this application can be run with specified local interface to bind. So I thought I might just create many loopback interfaces and run each instance of an application with specified loopback interface IP on single machine without any VMs.
For test I created 2 loopback adapters under windows:
No gw or DNS is specified for them. I added both of them to system32/etc/hosts.
When I run an application with specified IP it successfully binds to the loopback adapter, but it doesn't see other loopback adapter (Connection timeout).
So the problem is that the adapters can't talk to each other. How to configure it properly?