Error starting 5222 error while binding on 0.0 0.0 0.0 0.0 5222

Hi all I just reinstalled a new xmpp server vm with Openfire. I go through all the manual steps and after installing the latest Java and its updates I get

error starting 5222 error while binding on 0.0 0.0 0.0 0.0 5222 (others ports also)

During the setup I can login to the browser but after that I log out, install Java, open openfire I get this error . I did a netstat shows 5222 us listening but not being used. I will try to disable the server vm firewall see if it will do anything I think I did that to my old vm but it still kept giving the same error.

I’ve seen other posts on this but didn’t see resolution i don’t think… Please help thanks

That typically means that something else is binding to the same port - but you seem to have checked for that. Are you somehow launching Openfire twice, maybe (with the second attempt causing those errors)?

Does the error message contain any more information?

Hi Guus,
i’m facing the same problem and did not get the purpose of these errors:
Error starting 5222: Error while binding on 0.0.0.0/0.0.0.0:5222
original message : Address already in use: bind
Error starting 5223: Error while binding on 0.0.0.0/0.0.0.0:5223
original message : Address already in use: bind
Error starting 5269: Address already in use: bind
Retrying to start 5269 after a delay of PT2S
Error starting 5269: Address already in use: bind
Error starting 5270: Address already in use: bind
Retrying to start 5270 after a delay of PT2S
Error starting 5270: Address already in use: bind
Error starting 5275: Error while binding on 0.0.0.0/0.0.0.0:5275
original message : Address already in use: bind
Error starting 5276: Error while binding on 0.0.0.0/0.0.0.0:5276
original message : Address already in use: bind
Error starting 5262: Error while binding on 0.0.0.0/0.0.0.0:5262
original message : Address already in use: bind
Error starting 5263: Error while binding on 0.0.0.0/0.0.0.0:5263
original message : Address already in use: bind

It appears that you are running Openfire twice. Maybe it is running as a service in the background?

that is true the ports are reserved in background:
solution:

open cmd as administrator
netstat -ano | findstr :5222
taskkill /PID /F
note the the is the last ID of the port