Relocate IPC socket creation and use random port.