0

I'm running go main.go to run my APIs locally and I'm getting this error message. I don't know where I'm using port 8080 but I can't get it to run. How do I resolve it?

Environment variable PORT is undefined. Using port :8080 by default

[ERROR] listen tcp :8080: bind: Only one usage of each socket address (protocol/ network address/port) is normally permitted.

ocom
  • 91
  • 1
  • 8
  • 2
    On windows (that looks like a windows error message?) `netstat -ano` (shortcut `netstat -ano | findstr ":8080"`) will show you info on network connections so you can see what is using the port (see [this question](https://stackoverflow.com/questions/41836209/only-one-usage-of-each-socket-address-protocol-network-address-port-is-normall) for further details). – Brits Oct 15 '20 at 03:24

0 Answers0