scriptcs-nancy icon indicating copy to clipboard operation
scriptcs-nancy copied to clipboard

Automatically switch to an unused port

Open adamralph opened this issue 12 years ago • 1 comments

Currently the default port is hardcoded to 8888.

If another process is using this (e.g. Fiddler defaults to 8888), then the following error message is given and the script exits:

Cannot access a disposed object. Object name: 'System.Net.HttpListener'.

If 8888 is busy, we should failover to 8889 and so on...

adamralph avatar May 10 '13 22:05 adamralph

Also relates to https://github.com/adamralph/scriptcs-nancy/issues/7 and https://github.com/NancyFx/Nancy/issues/1086

adamralph avatar May 10 '13 22:05 adamralph