Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Jetty web server in LAN

GAE comes with an inbuilt jetty webserver for testing purpose.Can it be configured to accessed within our LAN?

I can access it using http://localhost:8888 or http://127.0.0.1:8888 but can't access using http://192.168.1.201:8888 (This my local LAN ip)

why?

like image 858
Manjoor Avatar asked Jul 13 '10 12:07

Manjoor


People also ask

Is Jetty is a web server?

Eclipse Jetty is a Java web server and Java Servlet container. While web servers are usually associated with serving documents to people, Jetty is now often used for machine to machine communications, usually within larger software frameworks.

How do I run an application on a jetty server?

The easiest way to deploy a web application to Jetty server is probably by copying the WAR file into the $JETTY_HOME/webapps directory. Jetty will scan its $JETTY_HOME/webapps directory at startup for web applications to deploy. Our new app will be deployed at /jetty-app context.

Why do we use Jetty server?

Jetty provides a web server and servlet container, additionally providing support for HTTP/2, WebSocket, OSGi, JMX, JNDI, JAAS and many other integrations. These components are open source and are freely available for commercial use and distribution.


1 Answers

Yes it is possible:

To make your GAE accessible on your LAN, you have to configure the launcher to use the address 0.0.0.0 instead of localhost.

Open the GoogleAppEngineLauncher >> Application Settings for your app

Add “-a 0.0.0.0″ to the Extra Flags section and restart. Now your GAE will run in your LAN and can be accessed by other devices.

like image 181
Erik Avatar answered Oct 24 '22 10:10

Erik