将具有静态IP的LAN连接到Internet [英] Connect LAN with static IP to Internet

查看:116
本文介绍了将具有静态IP的LAN连接到Internet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我买了一个家用静态IP.因此,我使用一台路由器并将其配置为静态IP.我也有4个LAN IP供使用.我的想象力是我使用一个IP地址(仍然有路由器)来设置服务器,因此每个人都可以连接到我的服务器.这可能吗?如果是,该怎么办?请回答我.

Hi, I bought a static IP for home use. So I use one router and configured it for the static IP. I also have 4 LAN IPs for use. My imagination is I set up the server by using one IP address (router is still have), so everyone can connect to my server. Is this possible? If yes, how do I do it? Please answer me.

推荐答案

如果要将服务器放在LAN上并允许LAN上的其他计算机访问该服务器,则需要多个静态IP地址.互联网.一个静态IP允许访问您的服务器,第二个静态IP可以由LAN上的所有其他计算机共享(您的路由器必须支持NAT和1:1 NAT.

您应该召集一些有关网络,网络如何工作以及如何以保护局域网的方式进行设置的研究.

Google是您的朋友.

顺便说一句,如果您的路由器支持端口转发,则可以使用一个静态IP进行此操作.只需将端口80上的所有数据包转发到您的服务器(假设它是Web服务器),但是如果是我,我将使用多个静态IP.我本人有五个静态IP.
You need more than one static IP address if you want to put your server on the LAN AND allow other computers on the LAN to get to the internet. One static IP will allow access to your server, and a 2nd static IP can be shared by all other machines on the LAN (your router has to support NAT and 1:1 NAT.

You rally should do some research regarding networks, how they work, and how to set one up in such a way as to protect your LAN.

Google is your friend.

BTW, you could probably do this with one static IP if your router supports port forwarding. Just forward all packets on port 80 to your server (assuming it''s a web server), but I would go with more than one static IP if it were me. I have five static IPs myself.


这篇关于将具有静态IP的LAN连接到Internet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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