Starting Server: [Errno 13] error while attempting to bind on address ('127.0.0.1', 5000):
Describe the bug
Hi,
since today I get this error when I try to start a open-ai server. [Errno 13] error while attempting to bind on address ('127.0.0.1', 5000):
Found out that ist svchost.exe, iphlpsvc. I can kill it and the server starts witout error, but than I get a "500" errer when I try to connect.
Best, Metzo
Is there an existing issue for this?
- [X] I have searched the existing issues
Reproduction
Check the OpenAI Box in extention and re start
Screenshot
No response
Logs
21:33:07-627432 INFO LOADER: "llama.cpp"
21:33:07-627432 INFO TRUNCATION LENGTH: 32768
21:33:07-627432 INFO INSTRUCTION TEMPLATE: "Custom (obtained from model metadata)"
21:33:07-635432 INFO Loaded the model in 4.02 seconds.
Closing server running on port: 7860
21:33:16-098403 INFO Loading the extension "gallery"
21:33:16-098403 INFO Loading the extension "openai"
21:33:16-255298 INFO OpenAI-compatible API URL:
http://127.0.0.1:5000
[Errno 13] error while attempting to bind on address ('127.0.0.1', 5000): der zugriff auf einen socket war aufgrund der zugriffsrechte des sockets unzulässig
Running on local URL: http://127.0.0.1:7860
System Info
AND Ryzen, GTX 1660
I get this error too but I don't see the service you mention
Having this issue as well.
The default port may be reserved by Windows, especially if you run Hyper-V related stuff, for example WSL VMs or Docker for Windows.
Run Command Prompt as Administrator, and run
netsh interface ipv4 show excludedportrange protocol=tcp
to check if Windows has reserved the port you want to use.
In my case you can see port 5000 is reserved by Windows(specifically, winnat service).
The easiest way to solve the problem without restarting your PC is simply restart winnat service.
Run
net stop winnat and net start winnat as Administrator.