IPv6 compatibility - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Development (https://forum.cuberite.org/forum-13.html) +--- Thread: IPv6 compatibility (/thread-515.html) |
IPv6 compatibility - xoft - 07-14-2012 I think it's about time we discussed this - how to make MCServer IPv6 compatible? Right now we support only IPv4. This is not acceptable for quite a lot of hosting servers, where they have only an IPv6 address visible from the internet (I'm on one such host) First, we need to decide, whether IPv6 and IPv4 should coexist in the server and whether it should be possible to turn each off in the config. How co make that config option backwards-compatible? Second, there's obviously the implementation. I personally have never done anything IPv6, so I don't have any idea on how it's done, how easy or difficult it's gonna be. But I suppose the current architecture of "one listener thread" will have to go, we'll need something better. Your thoughts? RE: IPv6 compatibility - FakeTruth - 07-14-2012 What's the difference? I thought IPv6 was just a different way of naming computers on a network. As you can see I don't even know what IPv6 is... RE: IPv6 compatibility - xoft - 07-14-2012 When creating a socket, you need to specify whether to use IPv4 or IPV6 address. So you can't bind to 0.0.0.0, but another address used for IPv6. Also the socket needs to be created with AF_INET6 (?) parameter instead of AF_INET. That's about all I can remember. RE: IPv6 compatibility - xoft - 03-05-2013 IPv6 should be implemented in rev 1253. However, I had no means of testing (my home network is IPv4-only), so I'd need someone to actually test this somehow. I've updated the wiki with the settings: http://mc-server.org/wiki/doku.php?id=configure:settings.ini&#server_section RE: IPv6 compatibility - xoft - 03-05-2013 As much as I can test it, it's working. I only have a single IPv6 machine on an isolated network, so my tests comprise of setting up an SSH tunnel to IPv6 on that machine. That seems to work. RE: IPv6 compatibility - xoft - 03-06-2013 Well what a surprise! I came home and found out that I cannot run MCServer, because my Windows XP doesn't have one of the IPv6 functions. So I had to rewrite one MCServer function to fix that. RE: IPv6 compatibility - xoft - 07-11-2013 Can anyone connect to my MC server at xoft.cz ? It's IPv6-only and I'm not on an IPv6-capable network (or rather, my IPv6 is existing but cut off from the internet access by the ISP) RE: IPv6 compatibility - bearbin - 07-12-2013 As my home computer isn't IPV6 compatible, I had to use my vps. I didn't have a MC client, so I just telnetted in, but I got a connection refused message. It seems not to work. |