Rserve connection from local R client to Rserve ho

2019-07-03 11:01发布

问题:

Currently trying to connect to an Amazon AWS server via IP address on port 6311. I've set up Rserve as a daemon on the AWS server and have checked that it is in fact listening on port 6311 by calling the netstat command, but when I run the follow from my local R client:

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

I get this error message:

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

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

Does anyone have any suggestions on how to connect to a remote server using this method??

回答1:

You need to set the entire public dns address as your host.

(e.g.)

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