Linux – Unable to connect to Socket Server running on VPS!

javalinuxsocketvps

I Could need some help here…

I'm running a java socket server on a 64bit Linux VPS and listening on a port 5555 however my clients aren't able to connect to that port.
When I run a netstat -anp on the server it gives me local address of ::ffff:127.0.0.1:5555and foreign address of :::* and the state is LISTEN.

Is the ::ffff:in the local address part causing the problem?

Best Answer

That address is your localhost interface, not an external interface. I assume your clients are connecting from "outside" the server, correct? If so, you'll need to set your java app to listen on whatever IP address is assigned to an outward-facing interface.