I try to open a remote driver with RSelenium but I keep on facing the same issue with Docker.
Within Docker I run
$ docker run -d -p 4445:4444 selenium/standalone-firefox:2.53.0
then
$ docker ps
Docker returns
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a89435c68373 selenium/standalone-firefox:2.53.0 "/opt/bin/entry_poin…" About an hour ago Up About an hour 0.0.0.0:4445->4444/tcp determined_sammet
then in R
remDr <- remoteDriver(port = 4445L)
remDr$open()
and I receive this error
Error in checkError(res) :
Undefined error in httr call. httr output: Failed to connect to localhost port 4445: Connection refused
I can't figure out how to handle this. Can anyone help? Thanks
Thanks to Ralf Stubner the command
remDr <- remoteDriver(remoteServerAddr = "yourIP", port = 4445L)
has fixed my issue
docker ps
command? – DocilaRSelenium::docker
vignette, section "RSelenium and Running Containers". On windows you might have to specify an IP address in addition to the port. – Docila