Meteor - accessing the app using public ip

前端 未结 2 1914
别那么骄傲
别那么骄傲 2021-01-13 18:19

I can access the app using localhost:3000 but I am trying to test from mobile devices locally, without having to deploy it. But I couldn\'t access the site.

I am all

2条回答
  •  离开以前
    2021-01-13 18:42

    Your service is probably only running locally (on local ports, 127.0.0.0/8), To confirm this, run netstat -tulpn to see what services are running and on what ports/interfaces. If you don't see 0.0.0.0:3000 or 128.84.125.239:3000 then you won't be able to get ti it from the IP you are trying and you need to change the bind address of your app to be that IP (or all interaces).

提交回复
热议问题