How could others, on a local network, access my NodeJS app while it's running on my machine?

后端 未结 15 1664
旧时难觅i
旧时难觅i 2020-12-02 07:55

I have a pretty straight-forward question. I made a web game with NodeJS, and I can successfully play it by myself with multiple browser windows open side-by-side; however,

15条回答
  •  攒了一身酷
    2020-12-02 08:07

    And Don't Forget To Change in Index.html Following Code :

     
     
    
     var socket = io.connect('http://192.168.1.4:8000');
    

    Good luck!

提交回复
热议问题