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

Cannot use IPv6 in Unity #259

Closed
xmedeko opened this issue Nov 6, 2018 · 0 comments
Closed

Cannot use IPv6 in Unity #259

xmedeko opened this issue Nov 6, 2018 · 0 comments
Assignees
Labels

Comments

@xmedeko
Copy link
Contributor

xmedeko commented Nov 6, 2018

The NetSocket.Bind to IPv6 fails on Unity, we have error:
System.Net.Sockets.SocketException (0x80004005): Only one usage of each socket address (protocol/network address/port) is normally permitted

If we remove #if !UNITY from code, so as the socket option is set:

socket.SetSocketOption(SocketOptionLevel.IPv6, (SocketOptionName) 27, true);

then the bind pass.

Library version: 0.8indev commit b86f288
Framework: Unity, Mono backend .NET 4.5
OS: Windows 10

Note: we do not use IPv6 at the moment. It would be nice to have NetManager flag not to bind to IPv6 at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants