Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer
    
Oh! so if the IP address is for instance 192.168.0.55 I should setup java for 192.168.0.55:5555 rather than 127.0.0.1:5555 right? –  Kevin Boyd Feb 5 '10 at 1:04
    
Yes, that should work. You should also verify that there are no iptables rules that may be blocking traffic to that IP/port. –  EEAA Feb 5 '10 at 1:15
    
Well I am a noob on linux but I will check on how to do that! –  Kevin Boyd Feb 5 '10 at 1:17
    
Well your suggestion worked for me! thanks a lot!! Luckily I didn't have to do up the iptables. –  Kevin Boyd Feb 5 '10 at 1:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.