I am building a chat application based on websocket protocol.I am uploading this on an apache server and i am getting this error :

"Warning: socket_bind() [function.socket-bind]: unable to bind address [98]: Address already in use"

I am using port no. 12346. When i checked this port's status i got "12346 is not responding".

I have checked many ports on my remote server ,none of them is responding.So please tell me how to check if there is a usable port which i can use??

I have also used port 80 and 443 but i am getting the error : Permission Denied

I think your webhost has blocked everyhing, I suggest you contact them.

80 and 443 are reserved. use some scanner to check which ports are already taken.