Openhab 3.1.0 is not open at localhost:8080 Failed to bind to /0.0.0.0:8080

Sorry for my english.

  • Platform information:
    • OS: Windows 7 SP1

    • Java Runtime Environment:
      C:\Users\Vlad>java -version
      openjdk version “11.0.13” 2021-10-19 LTS
      OpenJDK Runtime Environment Zulu11.52+13-CA (build 11.0.13+8-LTS)
      OpenJDK 64-Bit Server VM Zulu11.52+13-CA (build 11.0.13+8-LTS, mixed mode)

    • openHAB version: openhab-3.1.0

  • Issue of the topic: I dont understand why openhab is runing but i cant enter at localhost:8080, i was look at log and see this:
    2021-11-22 03:48:23.585 [ERROR] [.service.internal.HttpServiceStarted] - Could not start the servlet context for context path []
    java.io.IOException: Failed to bind to /0.0.0.0:8080
    Caused by: java.net.BindException: Address already in use: bind

i some googled, but not understand, where is my trouble.
I must change windows hosts file?
I look at java.exe process and what ports he use many ports.

You probably have another application running that has already bound to port 8080.

Run sudo lsof -i TCP -P | grep 8080 to see what process it is.

Edit: saw that you are using windows, then use netstat -abn -p TCP and look through the list.

Thank you, that was what I needed!