Hello all,
First, I don’t know for 100% if this has to be in the java libraries section or here, but I thought it fitted the best here…
Ok, so I made a game with help of LibGDX, its a turn-based strategy, that I want to publish on android and iOS, and maybe on desktop…
Now I want to play against my grandma, so I need to make this multiplayer for at least android and iOS…
I had problems because the ClientSocket is working on java application, but was not working on my android emulator, this caused my error:
ClientSocket socketname = Gdx.net.newClientSocket(Protocol.TCP, “127.0.0.1”, 1337, hints);
I changed “127.0.0.1” (local host) to my internal ip “192.168.1.82” (static ip) and it worked.
Maybe some people are helped with this