Host a directory as a local server

Godot Version

4.4.0-dev7

Question

I am making an Android code editor.

I want to host the home project directory as a localhost server (such as 127.0.0.1:8000) so users can see their code results in the web browser (HTML pages).

ENet peer nodes seems to not have such functionality.

Is there any way to do that?

I found a Godot addon called “godottpd” that adds HttpServer, HttpRouter, HttpFileRouter nodes that you can use to host a local HTTP server.
Learn more on

1 Like