Flask Socket.error Errno 48 Address Already In Use
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more
Error: [errno 98] Address Already In Use Odoo
about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges oserror: [errno 98] address already in use flask Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each return getattr(self._sock,name)(*args) socket.error: [errno 98] address already in use other. Join them; it only takes a minute: Sign up socket.error: [Errno 48] Address already in use up vote 61 down vote favorite 34 I'm trying to set up a server with python from mac terminal. I navigate
Socket 'address Already In Use'
to folder location an use: python -m SimpleHTTPServer But this gives me error: socket.error: [Errno 48] Address already in use I had previously open a connection using the same command for a different website in a different location in my machine. python simplehttpserver share|improve this question edited Feb 18 '15 at 0:19 asked Sep 28 '13 at 20:48 irm 49031225 1 Kill the other process or run this one with a different port: python -m SimpleHTTPServer 8081
Address Already In Use Find Process
–Blender Sep 28 '13 at 20:50 add a comment| 4 Answers 4 active oldest votes up vote 131 down vote accepted You already have a process bound to the default port (8000). If you already ran the same module before, it is most likely that process still bound to the port. Try and locate the other process first: $ ps -fA | grep python 501 81651 12648 0 9:53PM ttys000 0:00.16 python -m SimpleHTTPServer The command arguments are included, so you can spot the one running SimpleHTTPServer if more than one python process is active. You may want to test if http://localhost:8000/ still shows a directory listing for local files. The second number is the process number; stop the server by sending it a signal: kill 81651 Alternatively, run the server on a different port, by specifying the alternative port on the command line: $ python -m SimpleHTTPServer 8910 Serving HTTP on 0.0.0.0 port 8910 ... then access the server as http://localhost:8910; where 8910 can be any number from 1024 and up, provided the port is not already taken. share|improve this answer edited Sep 28 '13 at 21:04 answered Sep 28 '13 at 20:54 Martijn Pieters♦ 500k7412991455 What url should I have in browser to see if it is working? I'm running on a different port as you sugested –irm Sep 28 '13 at 21:02 @i
Flask return getattr(self._sock,name)(*args) socket.error: [errno 48] address already in use main script I get following error Running on http://127.0.0.1:5000/
Python Close Socket
Traceback (most recent call last): File "flask_app.py", line 298, in
I have no idea no https://teamtreehouse.com/community/oserror-errno-98-address-already-in-use to fix it. I was testing an app https://recalll.co/app/?q=python%20-%20error%3A%20%5BErrno%2098%5D%20Address%20already%20in%20use%20-%20Stack%20Overflow on localhost'/0.0.0.0' port:8000 and forgot to ctrl-C out of the app.run() before I closed the workspace and browser windows. Now I cannot run my app because Safari has the hostname, port bound to my address already previous session. I even cleared history and cookies and restarted Safari and it still gives same message. PLEASE HELP. surely there is a console command to kill the app running there and free up the port. 1 Answer Wes Chumley 6,381 Points Wes address already in Chumley Wes Chumley 6,381 Points about 1 year ago GOT IT! http://stackoverflow.com/questions/19071512/socket-error-errno-48-address-already-in-use Posting to the forum is only allowed for members with active accounts. Please sign in or sign up to post. Our mission is to bring affordable, technology education to people everywhere, in order to help them achieve their dreams and change the world. Our Company About Us Contact Us Community Treehouse Stories Student Perks Treehouse Blog Affiliate Program Careers Topics HTML CSS Design JavaScript Ruby PHP WordPress iOS Android Development Tools Business Tracks Web Design Web Development Rails Development PHP Development iOS Development Android Development WordPress Development Starting a Business Treehouse Blog About Treehouse Privacy Policy Terms & Conditions © 2016 Treehouse Island, Inc. Sign in Email Address Password I forgot my password Sign in
3, in