{"action":"created","issue":{"url":"https://api.github.com/repos/indexzero/http-server/issues/215","labels_url":"https://api.github.com/repos/indexzero/http-server/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/indexzero/http-server/issues/215/comments","events_url":"https://api.github.com/repos/indexzero/http-server/issues/215/events","html_url":"https://github.com/indexzero/http-server/issues/215","id":120160406,"number":215,"title":"EADDRINUSE instead of finding a free port","user":{"login":"thorn0","id":94334,"avatar_url":"https://avatars.githubusercontent.com/u/94334?v=3","gravatar_id":"","url":"https://api.github.com/users/thorn0","html_url":"https://github.com/thorn0","followers_url":"https://api.github.com/users/thorn0/followers","following_url":"https://api.github.com/users/thorn0/following{/other_user}","gists_url":"https://api.github.com/users/thorn0/gists{/gist_id}","starred_url":"https://api.github.com/users/thorn0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorn0/subscriptions","organizations_url":"https://api.github.com/users/thorn0/orgs","repos_url":"https://api.github.com/users/thorn0/repos","events_url":"https://api.github.com/users/thorn0/events{/privacy}","received_events_url":"https://api.github.com/users/thorn0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-03T12:29:34Z","updated_at":"2016-01-06T17:27:54Z","closed_at":null,"body":"As per #18, if the default port 8080 is in use, some other free port should automatically get found and used. However, this doesn't happen (Node 5.1, Windows 7 x64).\r\n\r\n```\r\nd:\\foo>http-server\r\nevents.js:141\r\n      throw er; // Unhandled 'error' event\r\n      ^\r\n\r\nError: listen EADDRINUSE 0.0.0.0:8080\r\n    at Object.exports._errnoException (util.js:856:11)\r\n    at exports._exceptionWithHostPort (util.js:879:20)\r\n    at Server._listen2 (net.js:1234:14)\r\n    at listen (net.js:1270:10)\r\n    at net.js:1379:9\r\n    at doNTCallback3 (node.js:463:9)\r\n    at process._tickCallback (node.js:369:17)\r\n    at Function.Module.runMain (module.js:459:11)\r\n    at startup (node.js:138:18)\r\n    at node.js:974:3\r\n```"},"comment":{"url":"https://api.github.com/repos/indexzero/http-server/issues/comments/169396777","html_url":"https://github.com/indexzero/http-server/issues/215#issuecomment-169396777","issue_url":"https://api.github.com/repos/indexzero/http-server/issues/215","id":169396777,"user":{"login":"kmgilbert100","id":8967884,"avatar_url":"https://avatars.githubusercontent.com/u/8967884?v=3","gravatar_id":"","url":"https://api.github.com/users/kmgilbert100","html_url":"https://github.com/kmgilbert100","followers_url":"https://api.github.com/users/kmgilbert100/followers","following_url":"https://api.github.com/users/kmgilbert100/following{/other_user}","gists_url":"https://api.github.com/users/kmgilbert100/gists{/gist_id}","starred_url":"https://api.github.com/users/kmgilbert100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmgilbert100/subscriptions","organizations_url":"https://api.github.com/users/kmgilbert100/orgs","repos_url":"https://api.github.com/users/kmgilbert100/repos","events_url":"https://api.github.com/users/kmgilbert100/events{/privacy}","received_events_url":"https://api.github.com/users/kmgilbert100/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T17:27:54Z","updated_at":"2016-01-06T17:27:54Z","body":"Havn't checked any versions in between but looks like it can't find a port on 4.2.2 or greater"}}