I am trying to setup Selenium Grid for the first time. I was able to run the hub, and a local node as well. Once I try to run a node on a VM, I get an error saying:
INFO - Couldn't register this node: Error sending the registration request: Connect to :4445 [/] failed: Connection timed out: connect
INFO - Couldn't register this node: this The hub is down or not responding: Connect to :4445 [/] failed: Connection timed out: connect
I've run the hub with:
java -jar selenium-server-standalone-3.4.0.jar -role hub -port 4445
The local node with
java -jar selenium-server-standalone-3.4.0.jar -role node -hub http://localhost:4445/grid/register/
And tried to run the remote node both with
java -jar selenium-server-standalone-3.4.0.jar -role node -hub http://<local machine ip>:4445/grid/register/
and with
java -jar selenium-server-standalone-3.4.0.jar -role node -hub http://<host ip>:4445/grid/register/
I took the from the message in the hub terminal session:
12:24:55.593 INFO - Nodes should register to http://:4445/grid/register/
I opened ports 4444 and 4445(just in case) in both sides(hub and node) firewalls.
Anyone has any idea why it might not work, and what can I do to help the new node to connect my hub?
Thx
edit after Murthi first comment: I tried to run both:
java -jar selenium-server-standalone-3.4.0.jar -role node -hub <hub-machine-ip>
and:
java -jar selenium-server-standalone-3.4.0.jar -role node -hub <hub-machine-ip> -hubHost <host-ip>
and in both cases, the cmd listed me all the options of Selenium Grid.
I also tried to run:
java -jar selenium-server-standalone-3.4.0.jar -role node -hub http://<hub-machine-ip>:4445/grid/register -host <host-ip>
and I got back to the error I received earlier of the Connection timeout
Edit 25/7: The hub OS is Mac OS x Yosemite The node OS is Windows 7 SP1 I ran the hub creation from the hub machine and the node creation from the node machine. The error I receive is always the same: INFO - Couldn't register this node: The hub is down or not responding: Connect to :4444 [/] failed:Connection timed out: connect I see this message on the command line terminal, on the node machine