Display listening ephemeral HTTP port in console upon launch

Hello,

It would be useful if a message was printed to the Defold console upon launch, indicating the ephemeral port that Defold is listening on for serving the HTML5 version of the project. I know such information can be found by building and then simply observing the port used in the URL in the browser that is launced, but in my case, I will often simply be going to the IP and port from a separate phone or tablet that is on the same local network, never intending to test on the device I’m coding from. It would also be a nice indicator that something is running like that in the background from the very beginning, since it may not be obvious to some users.

It would also be useful to have a toggle that determines whether it listens on all associated IPs, or just on localhost / loopback. The former case (which is presently the default) is a little troublesome if one is coding on an untrusted local network (though obviously one’s built-in firewall can handle this), since anything that scans all IPs on a local network over the ephemeral range would pick up the listening port. Since the port is active during the whole time the project is open (regardless of whether browser-based testing is being done or not), it might be worthwhile.

There was a somewhat similar request over in Make defold server port configurable that I’m aware of, so seconding that.

Thank you for any consideration the request is given, and thank you for the already fantastic engine!

2 Likes

Thank you for the feature request! Could you please create a request on GitHub and include the information you’ve shared here.