Is there a way to access the GAE dev application server on the local network?

If I access my website using http: // localhost: 8080 from the same Win 7 computer where the server is running, then it works fine.

If I try to access this from another PC (using my internal PC ip http://192.168.1.98:8080 ), then it does not work, Moreover, it is not available with this ip even on the same machine. What am I doing wrong?

(I tried disabling the firewall on my PC with Win 7 - this did not help)

+65
google-app-engine
Sep 23 2018-11-21T00:
source share
11 answers

First, check whether your server listens on a loop or on all interfaces - at the command line, enter netstat -an find the line with port 8080 and enter LISTENING, something like this:

  TCP 0.0.0.0:8080 0.0.0.0:07 LISTENING 

If IP is 0.0.0.0, it means that it is listening on all IP addresses, and the problem is with something else blocking it.

If the IP address is 127.0.0.1, you need to bind to the address 0.0.0.0. And now funny creatures - according to the documentation , you should add --address=0.0.0.0 or --host=0.0.0.0 to the arguments in the launch configuration (depending on the GAE version - thanks @momijigari). But in my case, I also have GWT, and the parameters go to GWT, and it does not accept this argument. But, on the other hand, it listens for all the interfaces that I personally tried to change to localhost. However, the GWT parameter has the -bindAddress parameter, but it sets only the address for the code server (one by default with port 9997), not HTTP.

+81
Sep 23 2018-11-11T00:
source share

Command line

Pass this program argument:

 --address=0.0.0.0 

Eclipse

Start your dev server with this extra program argument (you can find this in the "Debug Configurations" section of eclipse):

 --address=0.0.0.0 

Gradle

If you are using Gradle, then you need to set it to httpAddress as follows:

 appengine { httpAddress = "0.0.0.0" httpPort = 8888 ... 

Maven

 <configuration> <address>0.0.0.0</address> ... 
+19
Jun 01 '15 at 16:45
source share

A small update. Starting from version 1.8.7 you should set the parameter "--host" instead of "--address"

So just add - host = 0.0.0.0

+16
Jan 17 '14 at 16:48
source share

If you use devserver via maven add

 <address>0.0.0.0</address> 

under your

 <configuration> 

in your appengine-maven-plugin.

+4
Jul 22 '14 at 19:11
source share

I got it working using the above suggestions for -host = 0.0.0.0. Here are the steps.

  • During the project, go to Edit> Application Settings
  • Add to additional command line flags

Google App Engine Settings

Added Extra Command Line Flags

+4
Jan 12 '15 at 9:31 on
source share

For Google App Engine 1.8.9 (Java only), adding -a 0.0.0.0 for all interfaces worked for me.

 -a 0.0.0.0 --port=8888 "/home/dude/workspace-java/me.dude.thermo-AppEngine/war" 
+3
Jan 29 '14 at 16:16
source share

In the Gradle build file:

 appengine { httpAddress = "0.0.0.0" } 

( Gradle App Engine Plugin )

+2
Apr 3 '15 at 2:31 on
source share

Eclipse users can do the following in the GUI to implement command line arguments :

Right click on the project name -> Debug As (or run as) -> Configurations ... -> Arguments

In the "Program Settings" area, replace

 --port=8888 

from

 --port=8888 --host=0.0.0.0 

or

 --port=8888 --address=0.0.0.0 

depending on the version of the AppEngine SDK, and then check the port availability and software firewall settings.

+1
Feb 22 '14 at 6:58
source share

I am using Eclipse. I am trying to add --address = 0.0.0.0, but this did not work for me. Then I deleted the "--port = 8888" object from the command line. Arguments => the server defaulted to port 8080, and only then could team members connect to my machine through my IP address.

Finally, try removing the port entity and adding the -address = 0.0.0.0 object as described in earlier posts

0
Jun 17 '13 at 14:25
source share

Step 1: Obtain the LAN IP Address

Go to the Windows Command console (press Win + R, then type "cmd"). In the console, enter "ipconfig". You will see a list of displays. Under the Wi-Fi wireless LAN adapter, get the IPv4 address. It will be something 192.168.xx

LAN IP: 192.168.xx

Step 2:

Go to Eclipse, open the configured server

GAE Server Configuration

In the "GAE Development Server Properties" section β†’ Address of the local interface for binding, enter the LAN IP address and save.

Step 3:

You can now access the GAE server using

http: //192.168.xx: 8888 /

8888 - indicates the port number, as indicated in the GAE development server

0
Apr 01 '16 at 9:55 on
source share

-bindAddress 0.0.0.0

- this is what I need. I added it immediately before -port arg. It was through Eclipse.

0
Jul 04 '16 at 15:27
source share



All Articles