简体   繁体   English

将内置服务器暴露于外部计算机

[英]Exposing built in server to outside machine

I would like to use moinmoin's built in server (running on ubuntu) to serve pages to other machines on my LAN. 我想使用moinmoin的内置服务器(在ubuntu上运行)将页面提供给LAN上的其他计算机。 With the --interface flag, I can connect to the from the host machine by pointing my browser to 192.168.72.131:8080 , but the server does not respond to queries from outside. 使用--interface标志,我可以通过将浏览器指向192.168.72.131:8080从主机连接到,但是服务器不会响应来自外部的查询。

I found this , but none of the steps seem to work. 我发现了这一点 ,但是所有步骤似乎都不起作用。

iptables seems like a good bet, but I don't even know where to start; iptables似乎是一个不错的选择,但我什至不知道从哪里开始。 eg do I put it in the PREROUTING table, what flags do I use? 例如,我将它放在PREROUTING表中,我使用什么标志?

How can I enable other machines on my network to access the server? 如何启用网络上的其他计算机访问服务器?

从简单的角度来看,通常足以使Web服务器在正确的接口上侦听(也许还可以对“所有接口”尝试0.0.0.0)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM