0

I'm not sure how to configure my immutant installation to serve webpages

when I do:

>> lein immutant run 

>> curl http://127.0.0.1:8080/testing

it works, but

>> curl http://172.20.10.3:8080/testing

which is an alternative ip on my computer does not.

Where can we configure this option?

jcrossley3
  • 11,576
  • 4
  • 31
  • 32
zcaudate
  • 13,998
  • 7
  • 64
  • 124

2 Answers2

3

Ankur is close to correct - Immutant binds to localhost by default, so you need to specify a different bind address with the -b option. Specifying 0.0.0.0 will bind to every interface, but you don't pass a port to -b. So, the correct invocation would be:

lein immutant run -b 0.0.0.0
Toby Crawley
  • 617
  • 3
  • 8
1

Run it using:

lein immutant run -b 0.0.0.0:8080

Ankur
  • 33,367
  • 2
  • 46
  • 72