[KryoNet] Desktop can connect, phone can't.

I’m currently writing a game for a school project using Libgdx and KryoNet.

Since I’m using Libgdx I can run it on the desktop and my phone with the same code.

My problem is that I can connect to the server that is running on my desktop with any computer in my house no problem but when I try to connect with my phone it immediately says ‘Unable to connect to: /192.168.1.120:9070’.

I’ve also tried forwarding the ports and using my actual IP address with no luck.

Any ideas?

I can provide code snippets on request but the project is too big to show everything.

Edit:

The timeout is set to 60000

Oh. My. God.

I hate myself.

I forgot to add…

to the AndroidManifest.xml file.

Someone make fun of me, I deserve it.

Oh really? Then let me make fun of you ;D

You may also need access network state permission to enhance it.

Nah, you solved your own problem! That’s always a good feeling.

Yeah, I had the same problem recently- I copied some of the network code from a previous project that I knew was working. Add that to the checklist of things to do with new projects from now on…

I remember trying to develop on android without the eclipse plugin. The number of times this got me…
Then I started using eclipse and I made the same mistake within one day.

???

Do you mean android plugin for eclipse?