{"action":"opened","issue":{"url":"https://api.github.com/repos/httpswift/swifter/issues/163","repository_url":"https://api.github.com/repos/httpswift/swifter","labels_url":"https://api.github.com/repos/httpswift/swifter/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/httpswift/swifter/issues/163/comments","events_url":"https://api.github.com/repos/httpswift/swifter/issues/163/events","html_url":"https://github.com/httpswift/swifter/issues/163","id":166055992,"number":163,"title":"Question: How to use a dynamic port and find out the port number afterwards?","user":{"login":"jjv360","id":2771104,"avatar_url":"https://avatars.githubusercontent.com/u/2771104?v=3","gravatar_id":"","url":"https://api.github.com/users/jjv360","html_url":"https://github.com/jjv360","followers_url":"https://api.github.com/users/jjv360/followers","following_url":"https://api.github.com/users/jjv360/following{/other_user}","gists_url":"https://api.github.com/users/jjv360/gists{/gist_id}","starred_url":"https://api.github.com/users/jjv360/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjv360/subscriptions","organizations_url":"https://api.github.com/users/jjv360/orgs","repos_url":"https://api.github.com/users/jjv360/repos","events_url":"https://api.github.com/users/jjv360/events{/privacy}","received_events_url":"https://api.github.com/users/jjv360/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-18T09:41:24Z","updated_at":"2016-07-18T09:41:24Z","closed_at":null,"body":"Hi, I would be using multiple dynamically generated instances of the HttpServer. How would I find the local port that it's using?\r\n\r\n``` swift\r\nserver = HttpServer()\r\nserver[\"/:path\"] = shareFilesFromDirectory(bundleURL.path!)\r\nserver.start(0)\r\nserveURL = NSURL(string: \"http://localhost:\" + server.port) // < How to find what port it used?\r\n```"}}
{"actor":{"display_login":"jjv360"}}