Got this Error when installing and Starting up OpenFire for the first time with the new Beta release of Openfire 3.7.0.
The Error:
Could not listen on port: 5229
java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at org.jivesoftware.openfire.FlashCrossDomainHandler.startServer(FlashCrossDomainHandler.java:101)
at org.jivesoftware.openfire.FlashCrossDomainHandler.access$000(FlashCrossDomainHandler.java:36)
at org.jivesoftware.openfire.FlashCrossDomainHandler$1.run(FlashCrossDomainHandler.java:58)
at java.lang.Thread.run(Unknown Source)
The Fix:
I had to figure out what was already bound to that Port and shut the service down.
So to figure out what port to release
- type 'Netstat -a -n -o' on your command prompt
- Note the PID corresponds to the port which you want to release
- type the command 'tasklist /svc /FI "PID eq <THEPID>”’
- Note the task name listed on command prompt (below Image name)
- Kill that task from taskmanager
Hope It helps someone