How to force Typesafe Activator to listen 0.0.0.0:8888

前端 未结 3 1740
感动是毒
感动是毒 2021-02-07 14:33

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

3条回答
  •  不知归路
    2021-02-07 15:09

    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).

提交回复
热议问题