Page 1 of 2

/connect

Posted: Tue Feb 22, 2011 8:26 pm
by joethomas3000
ok heres another problem,

basically i have both servers up and running;
Rampage = Hub
Madness = Leaf

From Rampage when i do /stats c i get:
C *@72.20.21.111 * madness.ircmadness.net 12312 servers
H rampage.ircmadness.net * madness.ircmadness.net
C *@72.20.21.111 * services.ircmadness.net 12312 servers
H * * services.ircmadness.net
End of /STATS report

From Madness when i do /stats c i get:
C *@72.20.21.111 * rampage.ircmadness.net 12312 servers
H * * rampage.ircmadness.net
C *@72.20.21.111 * services.ircmadness.net 12312 servers
H * * services.ircmadness.net
End of /STATS report

My services are only working on Rampage, and when i try and connect them (from rampage) i get:
-rampage.ircmadness.net- *** Connect: Illegal port number

Both the ports are at 12312 and they are not busy :/

Re: /connect

Posted: Wed Feb 23, 2011 5:33 pm
by Jobe
You cant have BOTH server's listening on the SAME IP and SAME port on the SAME server.

You must use either a DIFFERENT port or a DIFFERENT IP.

Re: /connect

Posted: Thu Feb 24, 2011 6:09 pm
by joethomas3000
Ive changed 1 port to 32132 and the other is 12312, they both rehash fine and then on connect its still the same error!

Re: /connect

Posted: Thu Feb 24, 2011 10:57 pm
by Jobe
Can you show me the listen blocks and link blocks from BOTH servers please?

Re: /connect

Posted: Fri Feb 25, 2011 7:49 am
by joethomas3000
Hub (Rampage)

Code: Select all

link madness.ircmadness.net {
	username *;
	hostname 72.20.21.111;
	bind-ip *;
	port 32132;
	password-connect xxxxxxx;
	password-receive  xxxxxxx;
	hub rampage.ircmadness.net;
	class servers;
};

Code: Select all

listen         72.20.21.111:12312;
Leaf (Madness)

Code: Select all

link rampage.ircmadness.net {
    username *;
    hostname 72.20.21.111;
	bind-ip 216.18.189.253;
    port 12312;
    password-connect xxxxxxx; 
    password-receive  xxxxxxx; 
    hub *;
    class servers;
};

Code: Select all

listen         216.18.189.253:32132;
Edit: Added listen blocks, sorry just got up and i cant see propper :lol:

Re: /connect

Posted: Fri Feb 25, 2011 9:18 am
by Jobe
Forgive me if this is obvious, but if madness binds to 216.18.189.253, why does rampage have 72.20.21.111 for madness' IP in the link block?

Also can you show me the EXACT /connect command you're using? Because upon reviewing the source, the error message you quoted in your original post only occurs if you supply the port number to /connect. (I really should have checked that sooner sorry)

Re: /connect

Posted: Fri Feb 25, 2011 9:20 am
by joethomas3000
hi,

i got told off someone to do it like that, im not really good with links blocks

edit: i am doing /quote connect madness.ircmadness.net rampage.ircmadness.net

Re: /connect

Posted: Fri Feb 25, 2011 9:23 am
by Jobe
There's the problem, the CORRECT syntax for /connect is:
/connect <servertoconnectto> [<port> [<remoteservertoconnectfrom>]]

If the server you want to connect from is the server YOU are connected to then it does not need to be included.

As for the link block, "hostname" should be the IP or hostname the server the link block is for connects from.

Re: /connect

Posted: Fri Feb 25, 2011 9:57 am
by joethomas3000
hmm, thanks for that but when i try and connect i get the error "No Such Server"

/connect 216.18.189.253 [32132 [72.20.21.111]]
/connect madness.ircmadness.net [32132 [rampage.ircmadness.net]]

Both have the same error

Re: /connect

Posted: Fri Feb 25, 2011 2:33 pm
by katsklaw
Look at the listen blocks, the port's are transposed. that means the port in the link block must match the port in the listen block. How can you expect a connection on a port we aren't listening to?

Also, /connect can use wildcards. It seems to me you took Jobe's syntax literally. From madness try /connect ram*

The serv2 port serv3 syntax is mainly for connecting if you are on serv1 and connecting 2 servers remotely, if you are on one of the 2 servers being connected there is no need to do more than /connect server or /connect server port

You also have 2 different IP's in rampage's link block, I told you before to set the bind-ip to * on all servers.

on rampage:

Code: Select all

link madness.ircmadness.net {
       username *;
       hostname 72.20.21.111;
       bind-ip *;
       port 4400;
       password-connect "xxxxxxx";
       password-receive  "xxxxxxx";
       class servers;
};

Code: Select all

listen         216.18.189.253:4400;
on madness:

Code: Select all

link rampage.ircmadness.net {
       username *;
       hostname 216.18.189.253;
       bind-ip *;
       port 4400;
       password-connect "xxxxxxx";
       password-receive  "xxxxxxx";
       hub *;
       class servers;
       options {
                autoconnect;
       };
};

Code: Select all

listen         72.20.21.111:4400;
In the servers class block add:

Code: Select all

connfreq 100; /* How many seconds between each connection attempt */
Edit rampage first, then /rehash. Edit madness second, then /rehash. Madness will then autoconnect to rampage. The connfreq is how often to try a connection if the auto connecting server is not connected. in this case every 1 minute and 40 seconds madnesss will try to connect to rampage if it's not already connected.

Note about autoconnect. Autoconnect is optional, but if used it's expected for leafs to autoconnect to their respective hubs. This is not required and autoconnecting hubs to leafs will work, just not standard practice.

Re: /connect

Posted: Fri Feb 25, 2011 6:51 pm
by joethomas3000
Ive done as you have said and i get the following error on rehash

-rampage.ircmadness.net- Error binding stream socket to IP 216.18.189.153 port 4400 - rampage.ircmadness.net[216.18.189.153.4400]:Can't assign requested address

Re: /connect

Posted: Fri Feb 25, 2011 6:56 pm
by katsklaw
that means something else is using port 4400, try 4500 for everything.

Re: /connect

Posted: Fri Feb 25, 2011 8:28 pm
by joethomas3000
ive found a port that only i am using,
now i have this error when doing /connect mad*

-rampage.ircmadness.net- *** LocOps -- ERROR :from madness.ircmadness.net[72.20.21.111] -- Link denied (No matching link configuration) [@72.20.21.111.58059]
-
-rampage.ircmadness.net- *** LocOps -- ERROR :from madness.ircmadness.net[72.20.21.111] -- Closing Link: [72.20.21.111] (Link denied (No matching link configuration))
-
-rampage.ircmadness.net- *** LocOps -- Server madness.ircmadness.net[72.20.21.111] closed the connection

Re: /connect

Posted: Fri Feb 25, 2011 10:40 pm
by katsklaw
did you /rehash after editing unrealircd.conf?

Re: /connect

Posted: Fri Feb 25, 2011 10:43 pm
by joethomas3000
yes...