Skip to content

Can not connect to the Selenium running in Docker on remote server  #282

Open
@rcepka

Description

@rcepka

I am struggled for several days, trying to get connected to the Selenium server running on remote docker machine (not my localhost).

I have installed Docker on Ubuntu 20.04.
Running firefox -v return Mozilla Firefox 117.0.1.

I did from my server console: docker run -dt -p 4445:4444 selenium/standalone-firefox:117.0 and I see the Selenium nicely running on "http://my-server-ip:4445/ui"

Finally I am trying to connect to Selenium from R. In my Rstudio I run the code:

library(RSelenium)

 remDr <- RSelenium::remoteDriver(
   remoteServerAddr = "my-remote-server-ip",
   port = 4445L,
   browser = "firefox",
   )

 remDr$open()
#> [1] "Connecting to remote server"
#> $id
#> [1] NA

Created on 2023-09-16 with reprex v2.0.2

Computer is just hanging for several minutes and can not connect to the Selenium server.
I tried this also with Selenium Chrome server but with no luck.
What am I doing wrong please? Many thanks in advance...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions