Websocket server on Android I found hidden answer there. I changed: wsServer.run(); to wsServer.start(); and it works!