Docker selenium hub is not available from different computers (on the same network) [selector selenium grid does not work]

I installed the selenium docker hub on my localhost and it works and works (however, through Kitematic it shows 2 IP addresses for docker selenium-hub) (see this) enter image description here I checked that the dockler-selenium hub is working fine and is working on my local machine enter image description here

The main problem occurs when trying to register a chrome-node from another computer

Now I want to run selenium docker chrome node on another machine, so I produced the following command on another machine (Node machine IP address: "192.168.80.135", and I want node-chrome docker to run on port "5555"). The command I ran is

docker run -d -p 5555:5555 -e REMOTE_HOST="http://192.168.80.135:5555" -e HUB_PORT_4444_TCP_ADDR="192.168.99.101" -e HUB_PORT_4444_TCP_PORT="4444" -- name chrome-node selenium/node-chrome-debug:2.53.1 

However, the "higher shooting" command shows similar errors in the node-chrome-debug console

 06:10:03.690 INFO - I/O exception (java.net.NoRouteToHostException) caught when processing request to {}->http://192.168.99.101:4444: No route to host 06:10:03.690 INFO - Retrying request to {}->http://192.168.99.101:4444 08:25:15.809 INFO - Retrying request to {}->http://192.168.99.101:4444 08:25:18.809 INFO - I/O exception (java.net.NoRouteToHostException) caught when processing request to {}->http://192.168.99.101:4444: No route to host 08:25:18.809 INFO - Retrying request to {}->http://192.168.99.101:4444 08:25:21.809 INFO - Couldn't register this node: The hub is down or not responding: No route to host 08:25:29.809 INFO - I/O exception (java.net.NoRouteToHostException) caught when processing request to {}->http://192.168.99.101:4444: No route to host 08:25:29.810 INFO - Retrying request to {}->http://192.168.99.101:4444 

Also, I cannot open the selenium-hub url in the node machine ( http://192.168.99.101-00-00444/grid/console ) does not work ..

Any curious help would be appreciated. thanks in advance

Docker-Vm created on my local machine enter image description here

+1
docker selenium-grid
source share
1 answer

I reached above using this fooobar.com/questions/838002 / ...

In general, I did the following things 1) Port forwarding, as described above in the "default" vm section of my local host A enter image description here

2) register node from another computer (say, “machine B”) [Note: this command runs on another computer B, it will create a container for the chrome-node docking station (remaining with the standard vm of machine B) and register it in the docker container selenium-concentrator (remaining at the “default” vm of machine A)]

  docker run -d -p 5555:5555 -p 5900:5900 -e REMOTE_HOST="http://192.168.80.135:5555" -e HUB_PORT_4444_TCP_ADDR="192.168.80.62" -e HUB_PORT_4444_TCP_PORT="4444" --name chrome-node selenium/node-chrome-debug:2.53.1 

3) port forwarding to the "default" vm of machine B also ... enter image description here

The 3rd step is important, if you do not, then the selenium hub will not be able to contact the docker selenium node, which remains under machine B

+1
source share

All Articles