webmetrics/browsermob-proxy — pull request #23 by davbo (2011-11-16 14:42:35+00:00)
Title: Starting proxy servers on custom ports

Added support for creating proxies which run on a custom port. Also supported and documented in the REST API. This way you can programmatically bind to a port and see if it's free before attempting to open a Proxy on that port.

Perhaps default behaviour should be to attempt to ask the OS for a free port rather than current behaviour of incrementing a counter?