The trouble with allowing this to be specified from the command line is is that it also needs to be used for the port that gets opened. This also might be related to why you had issues with cookies. If you specified a different callback port, then the cookies might do funny things, or if it started with localhost but redirected to 127.0.0.1 then the cookies wouldn't persist.