I am trying to bind a self host web api on all network interface. The common usage si provided in this other question: Web API self host - bind on all network interfaces . However the asterisk is not accepted in the base adress. The following code:
string baseAddress = string.Format("http://*:9000/");
config = new HttpSelfHostConfiguration(baseAddress)
will throw a "System.UriFormatException"
According to here "*" is forbidden in Uri but then I am wondering if there would be an other way to define such a base address?