Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

swift server side server socket error

I'm suffering from server problem on both perfect and vapor ..

The server working for only one time , and once after i update the project and rebuild it, the server response does not update any more.

I got this error ... from vapor 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 alot , but did not figure out the problem

Finally : when i restart the mac , the server worked good only for one time , and the problem returned the same .

like image 460
mercury Avatar asked Nov 12 '17 01:11

mercury


1 Answers

Seems like a process is using port 8080. Try running lsof -i :8080 from the terminal and kill it's PID with kill -9 PID

like image 168
Mauran Muthiah Avatar answered Sep 28 '22 17:09

Mauran Muthiah