Modified code to connect to remote DCCP host