Locally testing w/ workers

On previous versions of wrangler when i was running wrangler dev i had the following output on console:
[mf:inf] Ready on http://*:54299
[mf:inf] - http://127.0.0.1:54299
[mf:inf] - http://192.168.1.98:54299
[mf:inf] - http://localhost:54299
[mf:inf] - http://[::1]:54299
[mf:inf] Ready on http://*:54299
[mf:inf] - http://127.0.0.1:54299
[mf:inf] - http://192.168.1.98:54299
[mf:inf] - http://localhost:54299
[mf:inf] - http://[::1]:54299
Now i receive this output :
[wrangler:inf] Ready on http://localhost:54241
[wrangler:inf] Ready on http://localhost:54241
Does that mean i cant communicate with my worker on http://192.168.1.98 ? Because when i try i get :
curl: (7) Failed to connect to 192.168.1.98 port 54241 after 6 ms: Couldn't connect to server
curl: (7) Failed to connect to 192.168.1.98 port 54241 after 6 ms: Couldn't connect to server
I was wondering if i needed more configuration to be able to test a worker running locally with another device on my home network.
2 Replies
Erisa
Erisa10mo ago
wrangler only listens on localhost now, to restore the old behaviour you can do wrangler dev --ip 0.0.0.0
poro
poroOP10mo ago
awesome ! this is what i needed, thx ! is there a way to put in in the wrangler.toml ? i've added the following line with no success :
ip = "0.0.0.0"
ip = "0.0.0.0"
Want results from more Discord servers?
Add your server