Unhandled exception. System.Net.Sockets.SocketException (48): Address already in use at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName) at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at System.Net.Sockets.TcpListener.Start(Int32 backlog) at System.Net.Sockets.TcpListener.Start() at EinfacherWebserver.Program.Requests.Main(String[] args) in /Users/Program.cs:line 61
Unhandled exception. System.Net.Sockets.SocketException (48): Address already in use at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName) at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at System.Net.Sockets.TcpListener.Start(Int32 backlog) at System.Net.Sockets.TcpListener.Start() at EinfacherWebserver.Program.Requests.Main(String[] args) in /Users/Program.cs:line 61
I tried
I tried
sudo kill -9 $(sudo lsof -t -i:3306)` but the error is still persistent. My full code here: https://pastebin.com/gXTwAu6S Is there workaround other than restarting a computer?