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 have setup a service on my server which has opened a port (ie, 40000) but its foreign address is :::* which is a wildcard ipv6 address (I think)

When I run telnet localhost 40000 on the server the connection is working fine, but when I try to telnet from my local machine it doesn't work.

When I telnet from my local machine Im using an ipv4 address.

How can I have the port to listen on an ipv4 address rather than an ipv6 address.

By the way, when I run netstat -anp --tcp --udp to check the open ports this is what I get for the port I'm trying to open

Local Address: :::40000
Foreign Address: :::*
State: LISTEN

share|improve this question
    
What service are you talking about? –  Bart De Vos Oct 4 '11 at 12:05
add comment

1 Answer

up vote 1 down vote accepted

How to configure this depends on the service, but you'll want to configure it to listen on the all-addresses IPv4 address, 0.0.0.0:40000.

share|improve this answer
add comment

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.