Let’s say that I have my TCP server in Germany.
When I try to connect from two mobile phones from Poland in the same LAN network (they have different ip’s here):
192.168.1.8 and 192.168.1.14
It disconnects previous device. They both have the same global address, and I don’t know how this is happening, cause I store only connections, not the InetAddresses:
public ArrayList<Connection> connectionsList = new ArrayList<Connection>();
The best thing is that when I open two emulators in the same PC, they work + I can even add one mobile phone O.o.
Btw. I have both UDP and TCP ports included in Server and Client’s constructors.
This is so strange that when I open emulators from the SAME IP ADDRESS in LAN they can work, when I try to open two phones it fails.
Is there someone who could point a solution?