Connecting Rserve from Local R Client to Rserve Host on AWS Server

You are currently trying to connect to the Amazon AWS server via an IP address on port 6311. I installed Rserve as a daemon on the AWS server and verified that it is actually listening on port 6311 by calling the netstat command, but when I run the next one from my local R client :

c <- RS.connect(host = "x.x.x.x")

      

I am getting this error message:

-  cannot connect to x.x.x.x:6311

      

The local client has RSClient installed, we have verified that Rserve is installed and running correctly on the host server.

Does anyone have any suggestions for connecting to a remote server using this method?

+3


source to share


1 answer


You need to set your entire public DNS address as host.

(eg.)



c <- RS.connect(host = "ec2-X-X-X-X.{availability_zone}.compute.amazonaws.com")

      

+3


source







All Articles