Netlify dev not working when connected to certain networks

Dear Postman men and women,

I use netlify dev without any problems on one network and on another it ends the process with an error:

To reproduce this behaviour I switch from my Home DSL internet (working fine) to my 4G internet on my iPhone and get the:

◈ Netlify Dev could not connect to localhost:8080.
◈ Please make sure your framework server is running on port 8080

When I’m on the network (DSL too) from my girlfriend I have the same error, all with the same codebase same configuration and netlify.toml file containing:

  # Directory (relative to root of your repo) that contains the deploy-ready
  # HTML files and assets generated by the build. If a base directory has
  # been specified, include it in the publish directory path.
  publish = "dist"
  # Default build command.
  command = "npm run build"
  # Directory with the serverless Lambda functions to deploy to AWS.
  functions = "functions"

  port = 8888
  command = "npm run --silent serve"
  functions = "functions"
  autoLaunch = false

  from = "/api/*"
  to = "/.netlify/functions/:splat"
  status = 200

  from = "/*"
  to = "/index.html"
  status = 200

I searched this forum and the interwebs but couldn’t find any answers, so I hope someone could help me with this.

Thanks in advance

Update, yesterday I found a quickfix for this problem by using a VPN on my Mac :tada:

1 Like

Hey there, @joris_accow :wave:

Thanks so much for following up and sharing your solution! It will be beneficial for future Forums members who encounter something similar.

1 Like