{"action":"created","issue":{"url":"https://api.github.com/repos/ucoin-io/ucoin-ui/issues/3","repository_url":"https://api.github.com/repos/ucoin-io/ucoin-ui","labels_url":"https://api.github.com/repos/ucoin-io/ucoin-ui/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/ucoin-io/ucoin-ui/issues/3/comments","events_url":"https://api.github.com/repos/ucoin-io/ucoin-ui/issues/3/events","html_url":"https://github.com/ucoin-io/ucoin-ui/issues/3","id":141372347,"number":3,"title":"Error when setting local ipv6","user":{"login":"Insoleet","id":1170293,"avatar_url":"https://avatars.githubusercontent.com/u/1170293?v=3","gravatar_id":"","url":"https://api.github.com/users/Insoleet","html_url":"https://github.com/Insoleet","followers_url":"https://api.github.com/users/Insoleet/followers","following_url":"https://api.github.com/users/Insoleet/following{/other_user}","gists_url":"https://api.github.com/users/Insoleet/gists{/gist_id}","starred_url":"https://api.github.com/users/Insoleet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Insoleet/subscriptions","organizations_url":"https://api.github.com/users/Insoleet/orgs","repos_url":"https://api.github.com/users/Insoleet/repos","events_url":"https://api.github.com/users/Insoleet/events{/privacy}","received_events_url":"https://api.github.com/users/Insoleet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-16T19:08:33Z","updated_at":"2016-03-26T14:42:16Z","closed_at":null,"body":"```\r\n(node) warning: possible EventEmitter memory leak detected. 11 end listeners added. Use emitter.setMaxListeners() to increase limit.\r\nTrace\r\n    at Server.addListener (events.js:239:17)\r\n    at Server.Readable.on (_stream_readable.js:655:33)\r\n    at Server.once (events.js:265:8)\r\n    at Server.Readable.pipe (_stream_readable.js:478:9)\r\n    at /home/inso/code/ucoin/app/lib/streams/bma.js:106:8\r\n    at /home/inso/code/ucoin/app/lib/network.js:123:26\r\n    at Array.map (native)\r\n    at /home/inso/code/ucoin/app/lib/network.js:107:34\r\n    at next (native)\r\n    at onFulfilled (/home/inso/code/ucoin/node_modules/co/index.js:65:19)\r\n2016-03-16T20:06:30+01:00 - info: uCoin server listening on http://192.168.0.22:20906\r\n2016-03-16T20:06:30+01:00 - error:  Error: listen EINVAL fe80::863a:4bff:fe5e:75fc:20906\r\n    at Object.exports._errnoException (util.js:837:11)\r\n    at exports._exceptionWithHostPort (util.js:860:20)\r\n    at Server._listen2 (net.js:1218:19)\r\n    at listen (net.js:1267:10)\r\n    at net.js:1376:9\r\n    at doNTCallback3 (node.js:440:9)\r\n    at process._tickCallback (node.js:346:17)\r\n```"},"comment":{"url":"https://api.github.com/repos/ucoin-io/ucoin-ui/issues/comments/201836179","html_url":"https://github.com/ucoin-io/ucoin-ui/issues/3#issuecomment-201836179","issue_url":"https://api.github.com/repos/ucoin-io/ucoin-ui/issues/3","id":201836179,"user":{"login":"c-geek","id":969136,"avatar_url":"https://avatars.githubusercontent.com/u/969136?v=3","gravatar_id":"","url":"https://api.github.com/users/c-geek","html_url":"https://github.com/c-geek","followers_url":"https://api.github.com/users/c-geek/followers","following_url":"https://api.github.com/users/c-geek/following{/other_user}","gists_url":"https://api.github.com/users/c-geek/gists{/gist_id}","starred_url":"https://api.github.com/users/c-geek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c-geek/subscriptions","organizations_url":"https://api.github.com/users/c-geek/orgs","repos_url":"https://api.github.com/users/c-geek/repos","events_url":"https://api.github.com/users/c-geek/events{/privacy}","received_events_url":"https://api.github.com/users/c-geek/received_events","type":"User","site_admin":false},"created_at":"2016-03-26T14:42:16Z","updated_at":"2016-03-26T14:42:16Z","body":"Consider the following:\r\n\r\n```\r\nlo        Link encap:Boucle locale  \r\n          inet adr:127.0.0.1  Masque:255.0.0.0\r\n          adr inet6: ::1/128 Scope:Hôte\r\n          UP LOOPBACK RUNNING  MTU:65536  Metric:1\r\n          Packets reçus:117438 erreurs:0 :0 overruns:0 frame:0\r\n          TX packets:117438 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 lg file transmission:0 \r\n          Octets reçus:59472768 (59.4 MB) Octets transmis:59472768 (59.4 MB)\r\n\r\nwlan0     Link encap:Ethernet  HWaddr 28:b2:bd:24:49:97  \r\n          inet adr:192.168.1.30  Bcast:192.168.1.255  Masque:255.255.255.0\r\n          adr inet6: fe80::2ab2:bdff:fe24:4997/64 Scope:Lien\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          Packets reçus:104802 erreurs:0 :0 overruns:0 frame:0\r\n          TX packets:91077 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 lg file transmission:1000 \r\n          Octets reçus:103254219 (103.2 MB) Octets transmis:12942218 (12.9 MB)\r\n```\r\n\r\nAnd check the following tries:\r\n\r\nIPv4 | IPv6 | port | Works\r\n----- | ----- | ----- | -----\r\n127.0.0.1 | ::1 | 9330 | Yes\r\n192.168.1.30 | ::1 | 9330 | Yes\r\n127.0.0.1 | fe80::2ab2:bdff:fe24:4997 | 9330 | No\r\n192.168.1.30 | fe80::2ab2:bdff:fe24:4997 | 9330 | No\r\n\r\nIs it because `wlan0` interface for IPv6 has a `Scope:Lien`? The `lo` has a `Scope:Hôte` on its side.\r\n\r\nThis [french thread](https://openclassrooms.com/forum/sujet/serveur-ipv6-bind-invalid-argument-einval) also suggests this might be the bug."}}