{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Hosting/issues/473","labels_url":"https://api.github.com/repos/aspnet/Hosting/issues/473/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Hosting/issues/473/comments","events_url":"https://api.github.com/repos/aspnet/Hosting/issues/473/events","html_url":"https://github.com/aspnet/Hosting/issues/473","id":116197733,"number":473,"title":"How to specify port number in hosting.","user":{"login":"Bartmax","id":3386797,"avatar_url":"https://avatars.githubusercontent.com/u/3386797?v=3","gravatar_id":"","url":"https://api.github.com/users/Bartmax","html_url":"https://github.com/Bartmax","followers_url":"https://api.github.com/users/Bartmax/followers","following_url":"https://api.github.com/users/Bartmax/following{/other_user}","gists_url":"https://api.github.com/users/Bartmax/gists{/gist_id}","starred_url":"https://api.github.com/users/Bartmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bartmax/subscriptions","organizations_url":"https://api.github.com/users/Bartmax/orgs","repos_url":"https://api.github.com/users/Bartmax/repos","events_url":"https://api.github.com/users/Bartmax/events{/privacy}","received_events_url":"https://api.github.com/users/Bartmax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-10T20:44:11Z","updated_at":"2015-11-10T21:16:39Z","closed_at":null,"body":"I think it would be good if you can include how port number is defined in configuration or as a sample.\r\n\r\nhttps://github.com/aspnet/Announcements/issues/108"},"comment":{"url":"https://api.github.com/repos/aspnet/Hosting/issues/comments/155569403","html_url":"https://github.com/aspnet/Hosting/issues/473#issuecomment-155569403","issue_url":"https://api.github.com/repos/aspnet/Hosting/issues/473","id":155569403,"user":{"login":"Tratcher","id":1821173,"avatar_url":"https://avatars.githubusercontent.com/u/1821173?v=3","gravatar_id":"","url":"https://api.github.com/users/Tratcher","html_url":"https://github.com/Tratcher","followers_url":"https://api.github.com/users/Tratcher/followers","following_url":"https://api.github.com/users/Tratcher/following{/other_user}","gists_url":"https://api.github.com/users/Tratcher/gists{/gist_id}","starred_url":"https://api.github.com/users/Tratcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tratcher/subscriptions","organizations_url":"https://api.github.com/users/Tratcher/orgs","repos_url":"https://api.github.com/users/Tratcher/repos","events_url":"https://api.github.com/users/Tratcher/events{/privacy}","received_events_url":"https://api.github.com/users/Tratcher/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T21:16:39Z","updated_at":"2015-11-10T21:16:39Z","body":"Configuring the port is server specific but WebListener and Kestrel use most of the same logic. `server.urls` is the key. The value is a semi-colon separated list of url prefixes, or ints if you only want to specify the port for `http://localhost:{port}`. E.g.:\r\n`http://localhost:8080/`, or `8080`, or `http://*:8080/;https://*:9090/`."}}