TheHellBox / KISS-multiplayer

Multiplayer mod for BeamNG.drive
https://kissmp.online
Apache License 2.0
140 stars 17 forks source link

IPv6 issue #139

Open nuggs opened 1 year ago

nuggs commented 1 year ago

Servers which default to using IPv6 can't connect. I haven't spent enough time with Rust to know what the issue is but when a server uses IPv6 as an IP address, it's impossible to connect. However, using the IPv4 IP address works to connect but makes it impossible to connect when using a domain name which also utilizes IPv6 which my domain name does.

For instance, my domain mobfactory.org utilizes IPv6 and nobody can connect, it fails to connect every time. I don't have a server up now, we switched from KISSmp due to this issue.

FrancoRav commented 1 year ago

Do you know what the error in the bridge is?

WhiteHusky commented 1 year ago

It's an issue I'm aware of and it all starts from here:

https://github.com/TheHellBox/KISS-multiplayer/blob/ab1dcc0ac191dee6f77d1614f45ab7743c0be35e/kissmp-server/src/lib.rs#L128

The server is only listening to IPv4, not including IPv6, and it needs to be solved in time.

We need to probably add some new config options when it comes to setting up binds and allowing the server to accept from multiple IPs.