The sockets and RMI are two different things. The RMI would use sockets, but its designed to communicate between two different machines. Think like a chat client.
Java is quite capable of opening sockets.
I can't tell you how to open a file with the KMPlayer, I just don't use it. VLC and Media player both accept a filename in the argument when launching it, so I presume KMPlayer would as well.