All my programs that had to do with web apps and routes are no longer working. Noticed the issue was something related to the port.
https://play.golang.org/p/30xNbkdhoaa
Heres the error i get when i run it on my IDE -
2019/10/06 14:12:22 listen tcp :8080: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
panic: listen tcp :8080: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
Really dont know what triggered it
ou have another program running bound to that port.
End it first or use another port.
On Linux you can find which programs are bound on which port by netstat -lnpt
.
For some reason, the commands for windows arent working.
This is what i get when i search for running programs on that port
netstat -ano | findstr 8080
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 19816
TCP [::]:8080 [::]:0 LISTENING 19816
This is supposed to end it - taskkill /F /PID 19816
But theres an invalid argument error. Ill continue to look for a different way to kill it
The command works on the windows terminal, and not on a bash terminal
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.