anirudh anirudh - 1 year ago 168
Python Question

"Unable to bind localhost:8000" error while running sample application in google app engine

I have just installed GAE launcher and am trying to run a sample application to make sure it works and I am getting the below error.

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

I am trying to run the python version of the app with python 2.7 and am using windows 8.1 operating system. I did not create any files for the app, I just created a new application and am trying to run it in localhost.

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

Answer Source

Another process is already bound to port 8000. Use netstat -an or netstat -anb or similar to investigate. It may be another instance of your development server.

Edit: If port 8000 is really occupied, Command-line arguments in the The Python Development Server says you can append --admin_port to change the 8000 to another free port.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download