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.

It has to do with the emulator itself. I learned this after spending two hours doing trial and error on a rcon client for android just to find the emulator caused it. Glad to here it works. Good luck on your game!

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org