Websocket is not working on android phone

The websocket is working on web but not working on android.
I have tested my code on web and it is working. But when I packed my code into an .apk file and instlled on my phone the websocket seize to work.