与HTTP侦听器混淆 [英] Confusion with HTTP Listener

查看:88
本文介绍了与HTTP侦听器混淆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么当我将以下前缀添加到我的HTTP侦听器"http://localhost:8080/"时,HTTP侦听器会启动并且可以正常工作,但是只要我输入IP地址作为前缀按照"http://10.0.0.111:5555/",侦听器启动,并引发以下异常:访问被拒绝".当我键入localhost时,localhost是否应该与输入IP地址相同?

在具有静态IP地址的计算机上启动侦听器时,是否可以解决此问题?

Why is it that when I add the following prefix to my HTTP Listener "http://localhost:8080/" , the HTTP listener starts and works fine, but as soon as I type in the IP address for a prefix as follow "http://10.0.0.111:5555/", and the listener starts, the following exception is thrown: "Access is Denied". When I type in localhost, shouldn''t localhost be the same as typing in the IP address?

Will this issue be resolved when starting the listener on a computer with an static IP address?

推荐答案

您的应用程序是否以提升的特权运行?
普通帐户必须先保留,才能钩住Http管道.可以在安装时以编程方式完成.参考:
. http://msdn.microsoft.com/en-us/library/Aa364673 [ ^ ]
Is your app running with elevated privilege?

Normal accounts cannot hook the Http pipeline without first making a reservation. It can be done programatically at install time. Ref:
.http://msdn.microsoft.com/en-us/library/Aa364673[^]


这篇关于与HTTP侦听器混淆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆