Netlify dev changes proxy port eveytime it runs

Hey @wispyco, thanks for opening this thread. If I understand correctly, you’re trying to access Netlify Functions running with netlify dev server. We changed the port behavior of Netlify functions port recently to reduce conflicts. Users are not supposed to connect to Netlify functions directly. You can access your functions on netlify dev port at /.netlify/functions/*.

For example, if your netlify dev server is running on port 8888 and have a functions “hello”. You will be able to access that function on http://localhost:8888/.netlify/functions/hello. If you want a consistent address for your netlify dev instance while running multiple netlify dev instances, you can specify --port flag.

netlify dev -p 8885 will run the server on port 8885 or fail if that port is not available. Please try that and let us know if that doesn’t fix your problem.

3 Likes