c#中创建httplistener用localhost可以使用,但是换成本机ip+端口号8080能够创建,但是不能使用。报错:拒绝访问
HttpListener httplis = null;
//string prefixes = Console.ReadLine();
//********定义HTTPlistenner*************//
string prefixes = "http://192.168.3.15:8081/";
httplis = new HttpListener();
httplis.Prefixes.Add(prefixes);
//********HTTPlistener开始*************//
httplis.Start();