python -m SimpleHTTPServer - Listening on 0.0.0.0:8000 but http://0.0.0.0:8000/test.html gives “Page Not Found”

前端 未结 10 1388
情歌与酒
情歌与酒 2020-12-29 04:54

After cding to my folder I enter

python -m SimpleHTTPServer

and get

Serving HTTP on 0.0.0.0 port 8000 ...
<
10条回答
  •  孤独总比滥情好
    2020-12-29 05:32

    Run ifconfig on Linux or ipconfig on Windows to find the ip address of the server.

    $ sudo ifconfig
    wlan0     Link encap:Ethernet  HWaddr 30:3a:64:b3:be:6a  
              inet addr:192.168.1.103  Bcast:192.168.1.255  Mask:255.255.255.0
    

    Here in case the url would be:

    http://192.168.1.103:8000/test.html

提交回复
热议问题