Page 1 of 1

Connection Refused - Running Ircservices and Unreal

Posted: Mon Feb 14, 2005 4:00 am
by Xeon
I've been messing with this problem for two days now and I cannot figure out what I'm doing wrong here.

Here is what's happening.

My unreal ircd is up and running, working perfectly and I've compiled Ircservices to be used with this ircd.

When I run ./ircservices from the shell I get the following response in the shell window:
Initialization successful, starting IRC Services.

All looks good, but when I then examine the ircservices.log I see the following:

Code: Select all

IRC Services 5.0.23 starting up
httpd/main: Listening on :80
FATAL: Can't connect to server (127.0.0.1:7029): Connection refused
This tells me that there has got to be something wrong with my C/N lines, but when I examine them and try other settings, I just can't get passed this problem.

Here is my unrealircd.conf statements:

Code: Select all

link            services.mynet.net
{
	username	*;
	hostname 	127.0.0.1;
	bind-ip 	127.0.0.1;
	port 		*;
	hub             *;
	password-connect "nopass";
	password-receive "nopass";
	class           servers;
		options {
			/* Note: You should not use autoconnect when linking services */
	};
};

ulines {
	services.mynet.net;
};
And here is my ircservices lines:

Code: Select all

RemoteServer	127.0.0.1 7029 "nopass"
ServerName	"services.mynet.net"
Why in the world isn't this working?

Any and all help here would be greatly appreciated.

Posted: Mon Feb 14, 2005 4:20 am
by Stealth
Do you have a listen block for port 7029?

Posted: Mon Feb 14, 2005 4:51 am
by White_Magic
this is prolly not needed (becuz as stealth mentioned u need a listen block for serversonly on lort 7029) but change the port for the link block in ur unreal ircd to 7029 as well.

Posted: Mon Feb 14, 2005 12:49 pm
by Xeon
Stealth wrote:Do you have a listen block for port 7029?
Holy crap! How stupid can I be??

That's exactly what it was. I had myself convinced I didn't need that because I was placing it within the link section. I dunno why!

Thanks alot Stealth!

Posted: Mon Feb 14, 2005 1:32 pm
by w00t
It happens, I've done it more than a few times 8)

Posted: Mon Feb 14, 2005 8:06 pm
by aquanight
For the record...

link::port is only used for OUTGOING connections! (link::options::autoconnect and default port for /connect)

Posted: Mon Feb 14, 2005 10:29 pm
by Xeon
That brings up another subject I have been wondering about.

Doesn't services autoconnect on launch?

Posted: Tue Feb 15, 2005 4:24 am
by w00t
Yes. NEVER EVER /connect services.