WCF 服务要打开哪个端口?
我创建了一个 WCF 服务,如果我输入以下 url,它就会工作: http://192.169.1.103/MyService/SomeService.svc
该IP来自我的内网。
如果我将该 IP 更改为 localhost,它也可以工作。
不幸的是,我想我需要转发,因为如果我将该IP更改为我的互联网IP,它就不起作用。 =(。
我有一个路由器和一个调制解调器路由器。(那就是 2 个路由器 =x)。但是我必须打开什么端口?我不明白这部分。
编辑:我有一些但这是主要问题。
I created a WCF service, and its working if I type this url:
http://192.169.1.103/MyService/SomeService.svc
That IP is from my intranet.
It also work if I change that IP to localhost.
Unfortunately, I guess I need to port foward, because if I change that IP to my internet IP, it doesn't work. =(.
I have a router and a modem-router. (So thats 2 routers =x). But what port do I have to open? I dont understand this part.
Edit: I have a few knownledge in port foward. But It's the main problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
标准http端口是80,如果使用https则为443。
Standard http port is 80, if you use https then it would be 443.
目前,您正在本地计算机上通过端口 80 提供该服务。您可以移植到这一点,但由于多种原因,这可能不是一个好主意。
Currently you are serving it up over port 80 on your local computer. You can port forward to that, but it probably isn't a great idea for lots of reasons.