Using Meteor without opening a Port

We coded some job workers for a project, but we don’t really need it to be an http server. How do we shut that down ?

Thank you!

1 Like

You probably know a lot more than me about Meteor, having created Grapher and all. But what if you just remove “browser” from .meteor/platforms?
And what’s the harm in having meteor listening to some random port on your server, that you don’t expose to the outside anyway?

@herteby actually i think you’re right, it shouldn’t matter if a port is opened if it’s not accessed. But having it open may open the way of each job worker to expose an http api.

Looking at the webapp package, it seems you may be able to restrict listening to localhost by setting BIND_IP:

1 Like

Or simply use iptables and drop everything for that port?