[SOLVED]Android device client not finding server that is bound to local host

So i created a libgdx game that has a multiplayer

The server listens on localhost
i.e

private DatagramChannel serverChannel;
serverChannel.bind(new InetSocketAddress("localhost", 55555));

The client sends message to localhost
It works on the desktop version of the game, but when i am testing it on the android device (not emulator).
Nothing ???

I have goggled around and tried 192.168.8.101 my IPv4
Still nothing >:(

Any help would be appreciated

So this is what ive been trying so far

i put the IPv4 from ipconfig into the client’s server representation i.e

ServerAbstraction server = new ServerAbstraction(new InetSocketAddress("192.168.8.101", 55555));

The server still has the local host as the Ip address

serverChannel.bind(new InetSocketAddress("localhost", 55555));

Still not working
Pls help

I’m not at all familiar with network programming, but if you’re hosting on localhost, doesn’t that let you only connect through localhost (=same computer)?
Do you have to specify an IP-address to host at?

I did.
I am so stupid

I changed the ip of server but client still binded to localhost

clientChannel.bind(new InetSocketAddress(33333));

ServerAbstraction server = new ServerAbstraction(new InetSocketAddress("192.168.8.101", 55555));

serverChannel.bind(new InetSocketAddress("192.168.8.101", 55555));

did the trick

Thanks Ghork, i appreciate the help