How to make Phoenix listen to a specific IP address
In config/{dev,prod}.exs:
config :the_app, TheApp.Endpoint,
http: [ip: {127,0,0,1}, port: 1234],
IP address must be in tuple format {127,0,0,1}.
In config/{dev,prod}.exs:
config :the_app, TheApp.Endpoint,
http: [ip: {127,0,0,1}, port: 1234],
IP address must be in tuple format {127,0,0,1}.
Add this alias to your shell to get the equivalent output of running “netstat | grep LISTEN” on Linux:
alias netstat-listen='lsof -iTCP -sTCP:LISTEN'