Meteor ddp-client.js socksjs ERR_CONNECTION_REFUSED on local

255 views Asked by At

The problem

I'm having an issue where when I start my local dev server with meteor, about 3/5 times the client's socksjs connection via ddp-client.js isn't able to connect and gets an ERR_CONNECTION_REFUSED error. All other connections work fine (websocket, JS, css, etc).

I'm seeing this in the console enter image description here

The socks is attempting to connect to 192.168.1.14, which is my correct internal ip.

What I've tried

  • setting the port manually with meteor --port 3000
  • waiting for Meteor.status().status === 'connected' on the client before making any calls

If you'd like to recreate the problem yourself you can pull down the package I'm working on, ProseMeteor at commit 51c0a304338228102edc75427f72e689a7aafb8a and try running the app yourself by running the bash run_demo script, you should see the problem when you visit http://localhost:3000.

I appreciate any help!

0

There are 0 answers