{"action":"created","issue":{"url":"https://api.github.com/repos/supertuxkart/stk-addons/issues/63","labels_url":"https://api.github.com/repos/supertuxkart/stk-addons/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/supertuxkart/stk-addons/issues/63/comments","events_url":"https://api.github.com/repos/supertuxkart/stk-addons/issues/63/events","html_url":"https://github.com/supertuxkart/stk-addons/issues/63","id":112116275,"number":63,"title":"Problems creating server","user":{"login":"hiker","id":6138652,"avatar_url":"https://avatars.githubusercontent.com/u/6138652?v=3","gravatar_id":"","url":"https://api.github.com/users/hiker","html_url":"https://github.com/hiker","followers_url":"https://api.github.com/users/hiker/followers","following_url":"https://api.github.com/users/hiker/following{/other_user}","gists_url":"https://api.github.com/users/hiker/gists{/gist_id}","starred_url":"https://api.github.com/users/hiker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiker/subscriptions","organizations_url":"https://api.github.com/users/hiker/orgs","repos_url":"https://api.github.com/users/hiker/repos","events_url":"https://api.github.com/users/hiker/events{/privacy}","received_events_url":"https://api.github.com/users/hiker/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/supertuxkart/stk-addons/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"hiker","id":6138652,"avatar_url":"https://avatars.githubusercontent.com/u/6138652?v=3","gravatar_id":"","url":"https://api.github.com/users/hiker","html_url":"https://github.com/hiker","followers_url":"https://api.github.com/users/hiker/followers","following_url":"https://api.github.com/users/hiker/following{/other_user}","gists_url":"https://api.github.com/users/hiker/gists{/gist_id}","starred_url":"https://api.github.com/users/hiker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiker/subscriptions","organizations_url":"https://api.github.com/users/hiker/orgs","repos_url":"https://api.github.com/users/hiker/repos","events_url":"https://api.github.com/users/hiker/events{/privacy}","received_events_url":"https://api.github.com/users/hiker/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-10-19T10:22:57Z","updated_at":"2015-10-19T23:14:25Z","closed_at":null,"body":"When the 'create' command is sent to the server, it only expects name and max-player as parameter, not the ip address or port.  api/server.php then passes 0 as ip address and port to createServer.\r\n\r\nThis then results in an error (since atm there is already one server on 0.0.0.0:0), and no server can be created.\r\n\r\nIt appears that the a second command is expected ('set') which will set the ip address and port, and/or start which appears to do something similar. I don't know how the protocol is supposed to work :(\r\n\r\nIs there a reason for this two-step process? STK could provide the public ip address and port number in this request (though the 'start' command also takes a second port number as parameter ('private-port'), at this stage I am not sure what this exactly is). Even if the 0:0 address would be only temporary, it's not a viable solution (since more than one server might be created at the same time).\r\n"},"comment":{"url":"https://api.github.com/repos/supertuxkart/stk-addons/issues/comments/149373394","html_url":"https://github.com/supertuxkart/stk-addons/issues/63#issuecomment-149373394","issue_url":"https://api.github.com/repos/supertuxkart/stk-addons/issues/63","id":149373394,"user":{"login":"hiker","id":6138652,"avatar_url":"https://avatars.githubusercontent.com/u/6138652?v=3","gravatar_id":"","url":"https://api.github.com/users/hiker","html_url":"https://github.com/hiker","followers_url":"https://api.github.com/users/hiker/followers","following_url":"https://api.github.com/users/hiker/following{/other_user}","gists_url":"https://api.github.com/users/hiker/gists{/gist_id}","starred_url":"https://api.github.com/users/hiker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiker/subscriptions","organizations_url":"https://api.github.com/users/hiker/orgs","repos_url":"https://api.github.com/users/hiker/repos","events_url":"https://api.github.com/users/hiker/events{/privacy}","received_events_url":"https://api.github.com/users/hiker/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T23:14:25Z","updated_at":"2015-10-19T23:14:25Z","body":"Hi Konstin,\r\n\r\nthanks for your comment, but don't waste your time on this (you could run this because your addon server doesn't have a server defined at 0.0.0.0:0, which we have on stkaddons atm - the main point is that this should never prevent a new server from starting).  Also note that the console is disabled in release mode iirc (at least it causes a crash on exit on windows otherwise)."}}