"Unable to bind localhost: 8000" error when running the sample application in Google App Engine

I just installed the GAE launcher and try to run a sample application to make sure it works, and I get the following error.

raise BindError('Unable to bind %s:%s' % self.bind_addr) google.appengine.tools.devappserver2.wsgi_server.BindError: Unable to bind localhost:8000 2014-03-24 10:54:54 (Process exited with code 1) 

I am trying to run a python version of an application using python 2.7 and am using windows 8.1 operating system. I did not create files for the application, I just created a new application and try to run it in local hosting.

Can someone please tell me what this error means and how to fix it?

+6
source share
4 answers

Another process is already bound to port 8000. Use netstat -an or netstat -anb or similar to exploration. This might be another example of your development server.

Change If port 8000 is really busy, the command line argument to the Python Development Server says that you can add --admin_port to change 8000 to another free port.

+5
source

The application server starts two servers: one for your application, the other for the developer console.

Change the IP address for the development console with:

dev_appserver.py --admin_port=9000

+7
source

I hope this helps other PyCharm users understand where to set the admin port to something other than 8000.

Go to "Run / Debug Configurations" and on the configuration tab add the following to the "advanced options":

 --admin_port=9000 

PyCharm Run / Debug Configuration

+2
source

For me, I have to use both -admin-port and -port

 dev_appserver.py --admin_port=9000 --port=9999 app.yaml 
+2
source

All Articles