The Fastest Way To Preview A Static Site Locally

file-sharinghttp-serverpython5 replies 路 154 views 路 started
  1. ok so i used python -m http.server to move photos from my PC to my phone on the same Wi-Fi 馃槶 Started the server in the folder, opened my PC's local IP address with :8000 on the phone, and downloaded them from teh listing. No cables, no cloud.

    But then I realized: by default it listens on all interfaces, sooo anynoe on the same network could see that folder while it runs. Fine at home, not so fine in a caf茅 :) Is there a safer way?? thx in advance!!

    3
  2. never run it in your home directory or anywhere with sensitive files.. :) it serves everything in that folder and below. hope that helps :)

    0 0 helpful

Reply to this topic

Sign in or create an account to reply.