connect stdin to remote ipc to stdout