xbmc/xbmc — comment on commit f56d4feeadf23d85b69392c5e311c683d57e361e
File:  line 0
By Montellese:

IIRC this has been done this way exactly because if it is set to a port that is already used by another application running on the same machine there is no way to change it because when you activate the webserver it can't bind to that port and shuts down again and with that it also disables the possibility to change the port setting so you are stuck with a non-working webserver until you find out which application is using the same port, shut that one down, start the webserver in xbmc, change the port, restart it and then restart the other application.

So IMO this should be reverted.