允许IONIC DevApp通过防火墙。

时间:2023-02-05 23:01:29

I am able to connect to IONIC DEVAPP via my personal computer but unable to connect it when hosted on the office laptop even on my home wifi network.

我可以通过我的个人电脑连接到IONIC DEVAPP,但即使在家里的wifi网络上,也无法连接到办公室笔记本电脑上。

I can see my app on both office and personal laptop.

我可以在办公室和个人笔记本上看到我的应用。

$ionic serve -c

I am able to access the Devapp hosted URL via my browser

我可以通过浏览器访问Devapp托管URL。

http://192.168.1.115:8100/?devapp=true

But, from my Android device, on my office laptop it gives the following error

但是,在我的Android设备上,在我的办公室笔记本电脑上,它给出了如下错误。

net::ERR:CONNECTION_TIMED_OUT( http://192.168.1.115:8100/?devapp=true)

net::犯错:CONNECTION_TIMED_OUT(http://192.168.1.115:8100 ? devapp = true)

It seems more like a Firewall Issue rather than a network issue.

它更像是一个防火墙问题,而不是一个网络问题。

1 个解决方案

#1


0  

I had the same problem and thought as you did, that this was a firewall issue. As I am on Ubuntu, using the ufw firewall...

我有同样的问题和想法,这是一个防火墙问题。我在Ubuntu上使用ufw防火墙…

sudo ufw allow 8100

in a terminal did the trick for me, and IONIC DEVAPP connected to my app.

在一个终端对我来说,和我的应用程序连接的IONIC DEVAPP。

#1


0  

I had the same problem and thought as you did, that this was a firewall issue. As I am on Ubuntu, using the ufw firewall...

我有同样的问题和想法,这是一个防火墙问题。我在Ubuntu上使用ufw防火墙…

sudo ufw allow 8100

in a terminal did the trick for me, and IONIC DEVAPP connected to my app.

在一个终端对我来说,和我的应用程序连接的IONIC DEVAPP。