Project/ML-헬스 기구 분류 및 운동법 추천
ngrok서버 구동 에러 Errno 111 Connection refused
CoderHan
2023. 6. 27. 11:20
반응형
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=4040): Max retries exceeded with url: /api/tunnels (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f51826567a0>: Failed to establish a new connection: [Errno 111] Connection refused'))
위와 같은 메세지와 함께 서버 구동이 되지 않고 있다..
처음엔 포트가 차단된 줄 알고 포트도 변경해보고 이래 저래 여러 시도를 해봤지만 들어먹질않았다..
구글링을 열심히 해봤더니 auth token을 내가 셋팅해주지 않아서 였다.
!pip install flask-ngrok
!pip install pyngrok
!ngrok config add-authtoken ##type your auth token#
이렇게 해주면 문제를 해결할 수 있다!
반응형