How to run socket server on hosting?

Oh,If it can be change so how does it work,i can’t imagine it .