General answer is "yes", but it all depends on details. Probably the simplest (and portable) way to do it is to use network sockets.