各位大大 问题是这样的
我是用深入浅出的范例在我自己的电脑上弄一个简单的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阿?
http://140.112.56.84/???
※ 编辑: left 来自: 140.112.217.224 (12/04 03:49)
1F:→ drjoey:140.112.56.84:3388 12/04 10:04
2F:→ hilorrk:前提是 localhost:8080 被 forward 到 140.112.56.84:3388 12/04 17:13
3F:→ uranusjr:或是乾脆你就用 3388 不要用 8080 就好了 12/04 17:16
4F:→ qwertmn:同上.. 不会用proxy 就 直接用 3388 port 来开server = = 12/05 11:01
5F:→ bob123:本机连自己 http:/127.0.0.1:8080 12/06 11:07