Support a randomized port, by setting the <content> src attribute in config.xml to "http://localhost:0" (the zero port triggers a randomized port selection).