作者changyuheng (张昱珩)
看板Python
标题Re: 一个设定位址的问题
时间Tue Dec 4 23:44:53 2012
140.112.56.84 那台要 forward 到 server 哪个 port 是可以设定的。
╔═══╗ ╔═══════╗ ╔
║server║═══════║140.112.56.84 ║═══════║Internet
╚═══╝ ╚═══════╝ ╚
↖--------- VIPA:????↙ ↖----------------- 140.112.56.84:3388
※ 引述《left》之铭言:
: 我是用深入浅出的范例在我自己的电脑上弄一个简单的web伺服器,是在python3.2下跑的
: 程式码如下:
: from http.server import HTTPServer, CGIHTTPRequestHandler
: port = 8080
: httpd = HTTPServer(('', port), CGIHTTPRequestHandler)
: print("Starting simple_httpd on port: " + str(httpd.server_port))
: httpd.serve_forever()
: 我现在有一个问题是 我是在某一个固定ip後面分出去的电脑
: 例如: 140.112.56.84 被网管指定的port是3388
: 我的ip格式要怎麽打才能存取到预设的index.html阿?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 36.224.168.99