臨時建立一個伺服器,讓區域網路內的其他使用者可以上傳或是下載檔案。
- 電腦必須安裝 Node.js
- 執行 start.bat 開啟服務
- 如果有防火牆提示,需要開啟防火牆
- 此時命令列會顯示一個網址,例如:
http://192.168.0.100:8000
- 其他相同區域網路的使用者在瀏覽器輸入剛剛產生的網址進行上傳或下載檔案
- 傳輸完畢直接關閉命令列視窗即可
- 使用者上傳的檔案都會放在
files
資料夾,同時這邊也是允許使用者下載的檔案。 - 能夠下載的檔案不會即時更新,若有需要更新請重新載入頁面。