局域网如何访问外网
不用翻墙的google地址

用个人电脑搭建网站

妙音 posted @ 2014年6月01日 01:47 in 其它 with tags 服务器 , 2302 阅读
是否可以用个人电脑搭建网站? 可以通信就一定可以相互访问.
  • 问题
通常个人电脑处在内网,连接着路由器,路由经过ads拨号,拥有临时外网地址. 当个人电脑向外网发送请求时,路由器会使用NAT协议,将请求转换为自己对为外网的请求。当外网返回数据时,路由器先接收到数据,然后根据转换关系,将请求转给个人电脑。在整个过程中,外网不知到个人电脑的存在,只知道到路由器. 在这种情况下如何将个人电脑上的服务映射出去呢?
  • 解决办法
每次个人电脑发送对外请求时,路由器都会将请求转换为自己的请求. 接收外网返回数据时,通过发送时的转换规则,返回给个人电脑。 如果转换关系是固定的,那么外网也就可以访问个人电脑了.
  • 示例
1. 启动一个简单web服务
c:\Python27>python -m SimpleHTTPServer 80
Serving HTTP on 0.0.0.0 port 80 ...
 
2. 设置路由器转发规则
 
3. 使用外网地址访问 
用百度搜索"ip地址"即可看到自己的外网地址,然后访问http://xxxxxx/
 
4. 使用域名访问
路由器的外网IP地址经常在变,不方便. 可以安装花生壳,然个人电脑拥有域名. 这样就不用管IP地址经常变化的问题.
 
花生壳下在地址
填入身份信息,注册成功,它会生成一个域名.
  • 其它
如果想把virtualbox虚拟机里面的服务映射到外网. 则需要在"网卡--网络地址转换-->端口转发"中进行设置. 
启用网卡2并设置为桥接网卡,让虚拟机拥有内网IP,然后再设置路由器转发规则,是没有用的.
 
Avatar_small
λ 说:
2014年6月01日 21:12

听说国内网站要备案,个人搞的容易被封……

Avatar_small
Faddy 说:
2021年8月26日 15:35

Excellent and very exciting site. Love to watch. Keep Rocking. Antminer s19j 90th

Avatar_small
seo 说:
2022年2月25日 17:16

<a href="https://alphacokefarm.com/">Buy Cocaine Online</a>
<a href="https://alphacokefarm.com/product-category/cocaine/">Cocaine Online</a>
<a href="https://alphacokefarm.com/product/buy-bolivian-cocaine-online/">Buy Bolivian Cocaine Online</a>
<a href="https://alphacokefarm.com/product/buy-colombian-cocaine-online/">Buy Colombian Cocaine Online</a>
<a href="https://alphacokefarm.com/product/buy-crack-cocaine-online/">Buy Crack Cocaine Online</a>
<a href="https://alphacokefarm.com/product/buy-volkswagen-cocaine-online/">Buy Volkswagen Cocaine Online</a>
<a href="https://alphacokefarm.com/product/cocaine-powder-for-sale/">Cocaine Powder for sale</a>
<a href="https://alphacokefarm.com/product-category/heroin/">Buy Heroin</a>
<a href="https://alphacokefarm.com/product/buy-brown-heroin-online/">Buy brown heroin online</a>
<a href="https://alphacokefarm.com/product/buy-heroin-online/">Buy Heroin Online</a>
<a href="https://alphacokefarm.com/product-category/ketamine/">Ketamine Online</a>
<a href="https://alphacokefarm.com/product/buy-ketamine-online/">Buy Ketamine Online</a>
<a href="https://alphacokefarm.com/product/buy-ketamine-powder-online/">Buy Ketamine powder online</a>
<a href="https://alphacokefarm.com/product-category/mdma/">Buy MDMA</a>
<a href="https://alphacokefarm.com/product/buy-mdma-crystals-online/">Buy mdma crystals online</a>
<a href="https://alphacokefarm.com/product/buy-mdma-powder-online/">Buy mdma powder online</a>

<a href="https://alphacokefarm.com/fr/acheter-cocaine-en-ligne/">Acheter cocaine en ligne</a>
<a href="https://alphacokefarm.com/fr/product/acheter-ketamine-en-ligne/"> Acheter ketamine en ligne</a>
<a href="https://alphacokefarm.com/fr/product/acheter-la-poudre-de-ketamine/"> Acheter la poudre de ketamine</a>
<a href="https://alphacokefarm.com/fr/product/acheter-de-lheroine-pure-en-ligne/"> Acheter de l'heroine pure en ligne</a>
<a href="https://alphacokefarm.com/fr/product/acheter-de-lheroine-brune-en-ligne/"> Acheter de l’heroine brune en ligne</a>
<a href="https://alphacokefarm.com/fr/product/acheter-poudre-de-mdma/"> Acheter Poudre de mdma</a>
<a href="https://alphacokefarm.com/fr/product/acheter-cocaine-colombienne-en-ligne/"> Acheter Cocaine Colombienne en ligne</a>
<a href="https://alphacokefarm.com/fr/product/acheter-de-la-cocaine-bolivienne-en-ligne/"> Acheter de la cocaine bolivienne en Ligne</a>
<a href="https://alphacokefarm.com/fr/product/acheter-volkswagen-cocaine-en-ligne/"> Acheter Volkswagen Cocaine en ligne</a>
<a href="https://alphacokefarm.com/fr/product/acheter-du-crack-en-ligne/"> Acheter du Crack en ligne</a>
<a href="https://alphacokefarm.com/fr/product/acheter-poudre-de-cocaine-en-ligne/"> Acheter Poudre de cocaine en Ligne</a>
<a href="https://alphacokefarm.com/fr/product/acheter-cristaux-mdma-en-ligne/"> Acheter cristaux mdma en ligne</a>
<a href="https://alphacokefarm.com/fr/product-category/cocaine-2/"> Cocaine</a>
<a href="https://alphacokefarm.com/fr/product-category/heroine/"> Heroine</a>
<a href="https://alphacokefarm.com/fr/product-category/ketamine-2/"> Ketamine</a>
<a href="https://alphacokefarm.com/fr/product-category/mdma-fr/"> MDMA</a>

<a href="https://alphacokefarm.com/es/comprar-cocaina-en-linea/">Comprar cocaina en linea</a>
<a href="https://alphacokefarm.com/es/product/compre-mdma-en-polvo-en-linea/"> Compre mdma en polvo en linea</a>
<a href="https://alphacokefarm.com/es/product/compre-cristales-de-mdma-en-linea/"> Compre Cristales de mdma en linea</a>
<a href="https://alphacokefarm.com/es/product/comprar-ketamina-en-linea/"> Comprar Ketamina en linea</a>
<a href="https://alphacokefarm.com/es/product/comprar-ketamina-en-polvo-en-linea/"> Comprar Ketamina en polvo en linea</a>
<a href="https://alphacokefarm.com/es/product/comprar-heroina-pura-en-linea/"> Comprar Heroina Pura en linea</a>
<a href="https://alphacokefarm.com/es/product/comprar-heroina-marron-en-linea/"> Comprar Heroina Marron en linea</a>
<a href="https://alphacokefarm.com/es/product/comprar-cocaina-colombiana-en-linea/"> Comprar Cocaina Colombiana en linea</a>
<a href="https://alphacokefarm.com/es/product/comprar-cocaina-pura-boliviana/"> Comprar cocaina pura boliviana</a>
<a href="https://alphacokefarm.com/es/product/comprar-volkswagen-cocaine/"> Comprar Volkswagen Cocaine</a>
<a href="https://alphacokefarm.com/es/product/comprar-cocaina-crack-en-linea/"> Comprar Cocaina Crack en linea</a>
<a href="https://alphacokefarm.com/es/product/comprar-cocaina-en-polvo-en-linea/"> Comprar Cocaina en polvo en linea</a>
<a href="https://alphacokefarm.com/es/product-category/cocaina-para-la-venta/"> Cocaina para la venta</a>
<a href="https://alphacokefarm.com/es/product-category/heroina/"> Heroina</a>
<a href="https://alphacokefarm.com/es/product-category/ketamina/"> Ketamina</a>
<a href="https://alphacokefarm.com/es/product-category/mdma-es/"> mdma</a>

<a href="https://alphacokefarm.com/de/kokain-kaufen/">Kokain Kaufen</a>
<a href="https://alphacokefarm.com/de/product/kaufe-mdma-online/"> kaufe mdma online</a>
<a href="https://alphacokefarm.com/de/product/mdma-kristalle-online-kaufen/"> mdma kristalle online kaufen</a>
<a href="https://alphacokefarm.com/de/product/ketamine-online-kaufen/"> Ketamine online kaufen</a>
<a href="https://alphacokefarm.com/de/product/kaufen-ketamin-pulver-online/"> Kaufen Ketamin pulver online</a>
<a href="https://alphacokefarm.com/de/product/kaufen-heroin-online/"> Kaufen Heroin online</a>
<a href="https://alphacokefarm.com/de/product/kaufen-braunes-heroin-online/"> Kaufen braunes Heroin online</a>
<a href="https://alphacokefarm.com/de/product/kaufen-kolumbianisches-kokain-online/"> kaufen kolumbianisches kokain online</a>
<a href="https://alphacokefarm.com/de/product/kaufen-bolivianisches-kokain/"> Kaufen bolivianisches kokain</a>
<a href="https://alphacokefarm.com/de/product/volkswagen-kokain-online-kaufen/"> Volkswagen kokain online kaufen</a>
<a href="https://alphacokefarm.com/de/product/kaufen-sie-crack-kokain-online/"> Kaufen sie crack kokain online</a>
<a href="https://alphacokefarm.com/de/product/kaufen-sie-kokainpulver-online/"> Kaufen sie Kokainpulver Online</a>
<a href="https://alphacokefarm.com/de/product-category/kokain/"> Kokain</a>
<a href="https://alphacokefarm.com/de/product-category/ketamin/"> Ketamin</a>
<a href="https://alphacokefarm.com/de/product-category/mdma-de/"> mdma</a>
<a href="https://alphacokefarm.com/de/product-category/heroin-2/"> Heroin</a>

Avatar_small
SEO 说:
2022年2月26日 13:52

Wow! Such an amazing and helpful post this is. I really really love it. It's so good and so awesome. I am just amazed. I hope that you continue to do your work like this in the future also https://www.posterprintcenter.com/large-format-printing.html

Avatar_small
คาสิโนได้เงินจริง 20 说:
2022年4月29日 00:38

I have express a few of the articles on your website now, and I really like your style of blogging. I added it to my favorite’s blog site list and will be checking back soon… คาสิโนได้เงินจริง 2022

Avatar_small
betflik auto 说:
2022年6月02日 23:38

Hi! This is my first visit to your blog! We are a team of volunteers and new initiatives in the same niche. Blog gave us useful information to work. You have done an amazing job! betflik auto

Avatar_small
KVS 7th Class Syllab 说:
2022年6月02日 23:43

Kendriya Vidyalaya Academic Year Complete Students Join next Class Academic Year 2022, Kendriya Vidyalaya 7th Students Download Syllabus Regular Reading new Syllabus for Exam Easy to Pass for the Academic Year 2022, KVS 7th Class Syllabus Students Download your KVS Class 7th Split Up Syllabus 2022 Online Pdf Format. This year Kendriya Vidyalaya has Announced Class 7th Split Up Syllabus for the subjects Hindi, English, Maths, Urdu Syllabus etc. have a look at the KVS Class 7th Exam Pattern and Syllabus 2022. Here, we have Downloaded the Different Chapters of all the books and Combined them into Pdf Format, KVS Class 7th Syllabus Download Regular Reading Good Performs in for All Exams for the Academic Year 2022.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter