Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Rackspace server running Ubuntu Lucid Lynx, where I have installed an IRCd-Hybrid. I can connect to the IRC server using irssi that was installed on the same machine where the server is, but when I try to access it from my computer at home or my friends try I get this error:

Connection Refused

What should I do?

share|improve this question
up vote 1 down vote accepted

I assume that probably means a firewall somewhere is blocking the connection. On your home machine, try connecting directly to the IRC port on your server. If you are running linux you can do this with telnet:

$ telnet your.example.server 6667

you should get some response from the server (you might have to hit enter first).

If that doesn't work, there's probably a firewall involved. Check the server where you are running ircd. What does the output of /sbin/iptables -nvL show for firewall rules? I bet you have a standard 'default-deny' setup, where incoming connections are dropped unless they are going to specific predefined ports.

share|improve this answer
I got this: telnet: connect to address Connection refused\n telnet: Unable to connect to remote host – Nathan Campos Mar 13 '11 at 22:14
That actually sounds like there isn't a service listening on the remote port. Check your ircd config file and see what interfaces it is configured to listen to, and what ports. You might only be set up to listen on localhost, which is why it works on the server but nowhere else. – Phil Hollenback Mar 13 '11 at 22:49

I think I moved my ircd.conf file on accident when trying to touch the MOTD file.. Restored the ircd.conf file, restarted the ircd-hybrid service, and we're good!

share|improve this answer

Your Answer


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.