Server Socket Server Error

I am experiencing problems with the server on both the ideal and the pair .

A server running for only once , and once after I update the project and rebuild it, the server response is no longer updated.

I got this error ... from a couple in Xcode

No command supplied, defaulting to serve...
Starting server on 0.0.0.0:8080
Serve error: Sockets Error: Failed trying to bind to the address

Identifier: Sockets.SocketsError.bindFailed
Program ended with exit code: 0

I googled a lot but didn't understand the problem

Finally: when I restart mac, the server worked well only once and the problem returned.

+4
source share
2 answers

, Xcode . Xcode , , , , , . , , , .

0

, 8080. lsof -i :8080 PID kill -9 PID

+11

Source: https://habr.com/ru/post/1689144/


All Articles