Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play Framework application not available outside host

My application works on localhost:9000 but even with activator start, the application isn't accessible from outside the host computer. Say, over a local network.

I don't see anything in the logs other than a notification that the server started. What do I need to do to make the application accessible from other machines?

like image 897
user2864874 Avatar asked Oct 22 '25 23:10

user2864874


1 Answers

By default, play binds to 0.0.0.0, making it accessible on all configured addresses and interfaces. If you want to explicitly bind it as such, you can start play using:

play -Dhttp.address=0.0.0.0 start

or

activator -Dhttp.address=0.0.0.0 start

In case this doesn't resolve the issue, try to telnet to your host address on port 9000 from another machine. If you fail to get a connection, most likely the firewall on your host needs to be reconfigured to allow TCP access over port 9000.

like image 104
Robby Cornelissen Avatar answered Oct 27 '25 04:10

Robby Cornelissen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!