0

I'm trying to server an HTML file to users who are connected on the same network using the webbit library.

This is what I expect:

Pressing a button in the android app to start the HTTP server (HTML file is under assets/web/index.html) Any of the same network users would be able to browse that HTML using the local IP of the phone like 192.168.0.xxx:8080 (or any other port used in implementation)

This is how I tried:

WebServer webServer = WebServers.createWebServer(8080)
                    .add("/mysocket", new HelloWebSockets())
                    .add(new StaticFileHandler("web"));
            webServer.start();

I ran the app and started the server and tried to visit the page but I got

PAGE NOT FOUND 404

Help will be much appreciated. If the question is not clear please comment. Thanks.

Nithis Kumar
  • 278
  • 2
  • 5
  • 21

0 Answers0