Hosting Java server on my own computer, using "no-ip" for static access

909 views Asked by At

I'm making the android game and my own JAVA server. I want to run that server on my own computer. I don't really need to run it anywhere else, so I really don't need other solution (payed hosts, etc...). I need a static IP access to my computer. Currently im using no-ip.com to do that, but I'm having trouble accessing received data. On my server Im listening on a specific port using DatagramSocket.receive(), and on the other side Im sending data to :

InetAddress.getByName(HostName.no-ip.biz):port(the port my server is listening to)

I can see that im sending data to the right address ( same address DUC is showing me), but server doesnt catch that data.

If anyone has some experience in using no-ip.com to gain static IP please help.

P.S. Currently I have internet access via iPhone tethering, so no having real router could be the reason behind this. I have read that i don't need port forwarding on cell-phone because my ISP is doing NAT for me. Any workarounds?

Is it just installing DUC on my computer enough to work with no-ip?

Any easier (free) way to get static IP?

1

There are 1 answers

2
jwinkler On

This seems like a port forwarding problem to me.

No-IP resolves the external IP address of your iPhone for you, so your packets go there. The iPhone does not know how to handle them. You would need to forward them from your iPhone to your local PC's IP address, but I do not know if that is possible.

When using your router at home, port forwarding should be no problem at all.