Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run meteor server on a different ip address?

Tags:

meteor

How can i start meteor server on a different IP address? Currently in the examples am only able to run on a localhost:3000 address.

like image 249
gath Avatar asked Apr 12 '12 12:04

gath


2 Answers

export BIND_IP no longer works, bind IP is defined with --port (or -p or --app-port) option(s):

$ meteor run --port 127.0.0.1:3000

Reference: https://github.com/meteor/meteor/commit/9b8bd31a7b6c857e5d8fc0393982e6e6b2973eb0

like image 118
Mika Vatanen Avatar answered Oct 26 '22 13:10

Mika Vatanen


If you are looking to run something on another IP address (but still have the files local) you need to look into editing your vhosts file. If you are on a mac, look into Virtual Host X

The proper way to change ports with meteor is this:

meteorapp : meteor --port 5000
like image 27
Matt Gaidica Avatar answered Oct 26 '22 14:10

Matt Gaidica