nuxt-community / adonuxt-template

[Deprecated] Starter template for Nuxt.js with AdonisJS.
451 stars 61 forks source link

Connecting from other devices on local network #95

Closed Intellimatic closed 6 years ago

Intellimatic commented 6 years ago

Hi guys,

I'm running Adonuxt on Win 10, and I can't seem to get to connect to my app from other devices on the same network. I have tried multiple things (changing the host IP address in the .env file, adding connect() listener to server.js, mapping ports in my hosts file, etc - pretty much everything you'd do to get access to Express on local network), but no luck so far. Any ideas where I could be going wrong?

This question is available on Nuxt.js community (#c76)
Skalv commented 6 years ago

have you try HOST=0.0.0.0 in .env ?

Intellimatic commented 6 years ago

@Skalv I have indeed, and also allowed all inbound/outbound TCP and UDP connections on the required port - still no luck... Firewall is also configured to allow connections for Node.js.

I am circumventing the problem by using ngrok at the moment.

jaybeemind commented 6 years ago

In your .env file, try replacing HOST=localhost to HOST=(ip of your machine). Then access that IP from another device.

michaeljakob commented 4 years ago

It would be a really amazing feature if nuxt dev (or yarn dev) would display the actual IP.

michaeljakob commented 4 years ago

Solution: https://stackoverflow.com/questions/55236594/nuxtjs-expose-localhost-to-external-doesnt-work