Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch does not support ipv6 #14

Merged
merged 4 commits into from
Jan 22, 2021
Merged

Conversation

neonaleon
Copy link
Contributor

socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Dgram, ProtocolType.Udp);

Switch does not support ipv6, so the following exception is thrown when using AddressFamily.InterNetworkV6

`SocketException: An address incompatible with the requested protocol was used
at System.Net.Sockets.Socket..ctor (System.Net.Sockets.AddressFamily addressFamily, System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType) [0x00000] in <00000000000000000000000000000000>:0
at kcp2k.KcpServer.Start (System.UInt16 port) [0x00000] in <00000000000000000000000000000000>:0
at kcp2k.KcpTransport.ServerStart () [0x00000] in <00000000000000000000000000000000>:0
at Mirror.NetworkServer.Listen (System.Int32 maxConns) [0x00000] in <00000000000000000000000000000000>:0
at Mirror.NetworkManager.SetupServer () [0x00000] in <00000000000000000000000000000000>:0
at Mirror.NetworkManager.StartHost () [0x00000] in <00000000000000000000000000000000>:0
at Mirror.Discovery.NetworkDiscoveryHUD.DrawGUI () [0x00000] in <00000000000000000000000000000000>:0
at Mirror.Discovery.NetworkDiscoveryHUD.OnGUI () [0x00000] in <00000000000000000000000000000000>:0

(Filename: currently not available on il2cpp Line: -1)`

@miwarnec
Copy link
Collaborator

thanks mate

@miwarnec miwarnec merged commit 0fc289e into MirrorNetworking:master Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants