HTTP Web服务访问 [英] HTTP webservice Access

查看:59
本文介绍了HTTP Web服务访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.
假设我已经创建了一个ASP.NET Web服务(或XML Web服务)并托管在IIS Web服务器上.我的网络中没有客户端-服务器体系结构.所有计算机都连接到路由器.问题是如何在LAN网络外部访问Web服务? Web服务可以在HTTP上运行,并且路由器/防火墙不会阻止端口80.因此,在LAN外部,任何人都可以从我的计算机访问该服务吗?这还需要端口转发吗?

Hey guys.
Assume that I have created a ASP.NET webservice(or XML webservice) and hosted on IIS web server. I dont have client-server architecture within my network. All computers are connected to router. The question is how a webservice can be accessed outside LAN network? Webservice works on HTTP and router/firewall does not block port 80.so outside a LAN, can anyone access the service from my computer? Does this also needs port forwarding?

推荐答案

客户端/服务器"与您的网络体系结构或您的客户端如何连接无关.粘吧.

这个问题与您的Web服务器的配置无关,但与您的网络无关.如果外部世界有通往您的Web服务器的路由,则他们可以看到Web服务.如果没有,他们就不能.就这么简单.

现在,如果您需要(但没有)专用于外部Internet的服务器,则您的网络存在相当大的设计问题.应该将服务器防火墙关闭,这样它才是外部客户端只能在某些端口上看到的唯一内容.您还必须确保您的路由器配置正确以支持此功能.

如果仅将整个网络(包括服务器)暴露给Internet,就意味着将客户端计算机暴露在非常恶劣的环境中.
"Client/server" has nothing to do with the architecture of your network or how your clients are connected to whatever. Googe it.

This question has nothing to do with the configuration of your web server, but of your network. If the outside world has a route to your web server, they can see the web service. If not, then they can''t. It''s that simple.

Now, if you need, but don''t have, a server dedicated to the outside internet, you have a rather large design problem with your network. The server should be firewalled off so it''s the only thing that an external client can see, and only on certain ports. You also have to make sure your router config is correct to support this.

If you just expose your entire network to the internet, including your server, you''re exposing your client machines to a VERY hostile world.


这篇关于HTTP Web服务访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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