HTTP Web服务访问

编程入门 行业动态 更新时间:2024-10-25 12:18:20
本文介绍了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服务访问

本文发布于:2023-11-08 14:19:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1569613.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:HTTP   Web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!