I have a good knowledge in webrtc.
As you said video is not working in different ip
reasons might be
1)For video you need https. So you need to create ssl certificates & add it to your code. It is working on local because it is your ip & server is on same machine. so no need of https.
2)check the websocket url, what you have given.
3) may be some other , which i can look into code & verify.
most probably first will be the case.
I'll solve it if you give me the chance.