G
Guest
I want to be able to use an ephemeral port (system assigned port) with the
HttpListener class but cannot figure out how to do it. With a TcpListener,
you would do something similar to:
IPEndPoint localEP = new IPEndPoint(IPAddress.Any, 0);
TcpListener tcpListener = new TcpListener(localEP);
I have a requirement to open up one or more http listeners so that external
components can connect. I would hate to have to write my own wrapper around
TcpListener. Plus I would like to be able to use http.sys. Is this possible?
HttpListener class but cannot figure out how to do it. With a TcpListener,
you would do something similar to:
IPEndPoint localEP = new IPEndPoint(IPAddress.Any, 0);
TcpListener tcpListener = new TcpListener(localEP);
I have a requirement to open up one or more http listeners so that external
components can connect. I would hate to have to write my own wrapper around
TcpListener. Plus I would like to be able to use http.sys. Is this possible?