Page 1 of 1

IPV6 Compiled but not able to connect

Posted: Sun Jul 11, 2004 11:14 pm
by ShArDiCk
Hi,
i've compiled Unreal3.2.1 with IPV6 and in the conf put
listen [ipv6]:port;
But, when i go to connect with a ipv6 client it returns "Connection Refused."

What's the problem?

Thanx.

Posted: Mon Jul 12, 2004 5:33 am
by w00t
I'm no expert with IPv6, but are ports specified that way?

Posted: Mon Jul 12, 2004 9:00 am
by ShArDiCk
Surely.

I've specified [ipv6]:port in the conf at c\n lines.

Posted: Mon Jul 12, 2004 2:09 pm
by Dukat
ShArDiCk wrote:I've specified [ipv6]:port in the conf at c\n lines.
Uuuhh... there are no c/n-Lines... :shock:
What exactly are you trying to do?
It's about clients unable to connect to the server, right?

Anyway...
It's correct, the IP has to be enclosed in brackets for IPv6.


Are you behind a firewall/router/nat/etc...?

Posted: Mon Jul 12, 2004 4:21 pm
by codemastr
Can you paste your actual listen line?

Posted: Tue Jul 13, 2004 7:41 am
by ShArDiCk
Here it is:
listen [2001:470:1f01:ffff::1df]:5555;

Posted: Tue Jul 13, 2004 6:14 pm
by ShArDiCk
I've solved the problem of "connection refused."

But now, my question is: i have to link this IRCD on IPV6 Compile with another that's IPV6 Compile.

It's possibile?

Another question.... i can set the LISTEN on an IPV6 ip on port 6667 on one ircd and on another ircd put an IPV4 ip on port 6667 on LISTEN?.

Thanx

Posted: Tue Jul 13, 2004 6:30 pm
by Dukat
Please tell us how you solved the problem.
Maybe you help future users with the same issue.


About Linking:
Why should it not be possible? Just do it! :D
(Follow the Howto if you are unsure: http://forums.unrealircd.com/viewtopic.php?t=329 )

About the listen-port:
As long as these are two different IPs, that shouldn't be a problem.

Posted: Tue Jul 13, 2004 7:10 pm
by ShArDiCk
Dont worry. Was my fault.
I didnt bind ipv6 addr on eth0 :P

However... ive problem on listening port...

i have two ircd on a server.

ipv4 ircd: binded on 6667 on ipv4 ip
ipv6 ircd: binded on 6667 on ipv6 ip.

When i run ipv6 ircd returns this error:
Error binding stream socket to IP 2001:618:4db::1 port 6667 - v6.irclab.net[]:Address already in use

I dont understand how....

If you want my listen line or link lines say me. im going crazy

Posted: Tue Jul 13, 2004 7:41 pm
by Dukat
Please post all listen blocks/lines of both IRCds.

Posted: Tue Jul 13, 2004 9:16 pm
by ShArDiCk
LISTEN on ipv6 ircd:
listen ipv4:5556;
listen [2001:618:4db::1]:6667;
Listening on ipv4:5556 is needed to link with the hub via ipv4.

LISTEN ON ipv4 ircd:
listen ipv4:6667

Posted: Tue Jul 13, 2004 9:24 pm
by codemastr
listen ipv4:5556;
Well, I'm assuming you actually have an ipv4 IP there, not the word "ipv4"? But anyway, that's still not correct. In IPv6 mode, you need to inform the system that it is a v4 IP. You do this through v4 mapping:

listen [::ffff:127.0.0.1]:5556;

That would listen on port 5556 of the IPv4 IP 127.0.0.1.

Posted: Tue Jul 13, 2004 9:27 pm
by ShArDiCk
I havent problem on listening on 5556 on v4 ip.
Surely, i havent "ipv4" word in listen block :)

I have problem on listening on 6667 on v6 ip.

Error binding stream socket to IP 2001:618:4db::1 port 6667 - v6.irclab.net[]:Address already in use

Posted: Wed Jul 14, 2004 10:08 am
by ShArDiCk
I setup the LISTEN lines of ipv6 ircd on 5556 for ipv4 and 5555 for ipv6.
It starts.
listen [::ffff:127.0.0.1]:5556;
listen [2001:618:4db::1]:5555;
I have done it only to start the ipv6 ircd and try.

Now i have to link it for test to my hub, that's an ircd IPV4 Compile.

This is my c\n line on ipv6 ircd:
link myhub.myserver.net
{
username *;
hostname ::ffff:1.2.3.4;
bind-ip *;
port 5556;
hub *;
password-connect "pass";
password-receive "pass";
class servers;
options {
autoconnect;
};
};
If i use
hostname 1.2.3.4;
it returns an error:
*** Notice -- error: unrealircd.conf:358: link myhub.myserver.net has link::hostname set to '1.2.3.4' (IPv4) on a IPv6 compile, use the ::ffff:1.2.3.4 form instead
And how it advice ive done but with that c\n lines that you can see above it returns another error:
*** Couldn't connect to myhub.myserver.net.
Any ideas?

Thanx