Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force Typesafe Activator to listen 0.0.0.0:8888

I recently installed Typesafe Activator to a VM. Applications created by activator can be accessed after port forwarding, but Activator seems to listen localhost. How to change this to WAN?

like image 668
interlude Avatar asked Aug 14 '13 14:08

interlude


3 Answers

It looks like setting system properties http.address and http.port will now do this job, e.g.

./activator -Dhttp.address=0.0.0.0 -Dhttp.port=80 

Would launch Activator on a WAN on port 80 (assuming matching permissions, etc).

like image 181
Michael Nash Avatar answered Nov 19 '22 21:11

Michael Nash


It is hardcoded right now and there's no way to change short of recompiling from source. https://github.com/typesafehub/activator/blob/master/ui/app/activator/UIMain.scala#L99

Maybe we could prefix this with if (System.getProperty("http.address") == null) File an issue on github?

Update: this is now fixed so that -Dhttp.address works (and above source link no longer goes to the right place)

like image 32
Havoc P Avatar answered Nov 19 '22 22:11

Havoc P


Base on Michael Nash's answer, but should be

./activator ui -Dhttp.address=0.0.0.0 -Dhttp.port=80

for version 1.2.10

like image 2
temple Avatar answered Nov 19 '22 22:11

temple