{"action":"closed","issue":{"url":"https://api.github.com/repos/statianzo/Fleck/issues/185","repository_url":"https://api.github.com/repos/statianzo/Fleck","labels_url":"https://api.github.com/repos/statianzo/Fleck/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/statianzo/Fleck/issues/185/comments","events_url":"https://api.github.com/repos/statianzo/Fleck/issues/185/events","html_url":"https://github.com/statianzo/Fleck/issues/185","id":177574518,"number":185,"title":"IPv6 issue: Listener could not be restarted, An address incompatible with the requested protocol was used","user":{"login":"jespertheend","id":2737650,"avatar_url":"https://avatars.githubusercontent.com/u/2737650?v=3","gravatar_id":"","url":"https://api.github.com/users/jespertheend","html_url":"https://github.com/jespertheend","followers_url":"https://api.github.com/users/jespertheend/followers","following_url":"https://api.github.com/users/jespertheend/following{/other_user}","gists_url":"https://api.github.com/users/jespertheend/gists{/gist_id}","starred_url":"https://api.github.com/users/jespertheend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jespertheend/subscriptions","organizations_url":"https://api.github.com/users/jespertheend/orgs","repos_url":"https://api.github.com/users/jespertheend/repos","events_url":"https://api.github.com/users/jespertheend/events{/privacy}","received_events_url":"https://api.github.com/users/jespertheend/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-17T12:58:43Z","updated_at":"2016-09-21T06:53:33Z","closed_at":"2016-09-21T06:53:33Z","body":"I'm trying to switch to IPv6.\r\nusing `new WebSocketServer(port,\"ws://[::]/\");` doesn't seem to work for some reason. So currently I'm using\r\n\r\n`new WebSocketServer(port,\"ws://[0000:0000:0000:0000:0000:0000:0000:0000]/\");`\r\n\r\nhowever, with many users connecting to the server, every minute or so the server will restart because of an error. Previously this was doing fine but right now I'm getting an error:\r\n\r\n`An address incompatible with the requested protocol was used`\r\n\r\nI'll see if I can fix this but any help would be appreciated.\r\n\r\n```\r\n9/17/2016 12:50:26 PM [Info] Server started at ws://[0000:0000:0000:0000:0000:0000:0000:0000]/ (actual port 7999)                                                                  \r\n9/17/2016 12:50:27 PM [Error] Listener socket is closed System.AggregateException: One or more errors occurred. ---> System.Net.Sockets.SocketException: The socket is not connected                                                                                                                                                                                  \r\n  at System.Net.Sockets.Socket.get_RemoteEndPoint () <0x41d76280 + 0x000b7> in <filename unknown>:0                                                                                \r\n  at Fleck.SocketWrapper.get_RemoteIpAddress () <0x41d761e0 + 0x00023> in <filename unknown>:0                                                                                     \r\n  at Fleck.WebSocketServer.OnClientConnect (ISocket clientSocket) <0x41d75c40 + 0x00086> in <filename unknown>:0                                                                   \r\n  at Fleck.SocketWrapper+<Accept>c__AnonStorey2.<>m__1 (System.Threading.Tasks.Task`1 t) <0x41d75b90 + 0x00042> in <filename unknown>:0                                            \r\n  at System.Threading.Tasks.ContinuationTaskFromResultTask`1[TAntecedentResult].InnerInvoke () <0x7f249eca6420 + 0x00073> in <filename unknown>:0                                  \r\n  at System.Threading.Tasks.Task.Execute () <0x7f249ec9e050 + 0x00055> in <filename unknown>:0                                                                                     \r\n  --- End of inner exception stack trace ---                                                                                                                                       \r\n---> (Inner Exception #0) System.Net.Sockets.SocketException: The socket is not connected                                                                                          \r\n  at System.Net.Sockets.Socket.get_RemoteEndPoint () <0x41d76280 + 0x000b7> in <filename unknown>:0                                                                                \r\n  at Fleck.SocketWrapper.get_RemoteIpAddress () <0x41d761e0 + 0x00023> in <filename unknown>:0                                                                                     \r\n  at Fleck.WebSocketServer.OnClientConnect (ISocket clientSocket) <0x41d75c40 + 0x00086> in <filename unknown>:0                                                                   \r\n  at Fleck.SocketWrapper+<Accept>c__AnonStorey2.<>m__1 (System.Threading.Tasks.Task`1 t) <0x41d75b90 + 0x00042> in <filename unknown>:0                                            \r\n  at System.Threading.Tasks.ContinuationTaskFromResultTask`1[TAntecedentResult].InnerInvoke () <0x7f249eca6420 + 0x00073> in <filename unknown>:0                                  \r\n  at System.Threading.Tasks.Task.Execute () <0x7f249ec9e050 + 0x00055> in <filename unknown>:0 <---                                                                                \r\n                                                                                                                                                                                   \r\n9/17/2016 12:50:27 PM [Info] Listener socket restarting                                                                                                                            \r\n9/17/2016 12:50:27 PM [Error] Listener could not be restarted System.Net.Sockets.SocketException: An address incompatible with the requested protocol was used                     \r\n  at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) <0x41d6f340 + 0x000ef> in <filename unknown>:0                                                                 \r\n  at Fleck.SocketWrapper.Bind (System.Net.EndPoint endPoint) <0x41d6f300 + 0x00023> in <filename unknown>:0                                                                        \r\n  at Fleck.WebSocketServer.Start (System.Action`1 config) <0x41d6ef90 + 0x00076> in <filename unknown>:0                                                                           \r\n  at Fleck.WebSocketServer.<ListenForClients>m__0 (System.Exception e) <0x41dab300 + 0x0010b> in <filename unknown>:0\r\n```"}}
{"actor":{"display_login":"jespertheend"}}