title: Failed to connect Couldn't register this node: Error sending the registration request: Failed to connect while registering SeleniumGrid Node to Hub
body: <p>Selenium hub is up and running on Windows desktop, set up Windows VM to be node. Node won't register to hub. </p>
  
  <p>Step 1:
  Entered command in Windows Desktop: </p>
  
  <p><code>java -jar selenium-server-standalone-3.14.0.jar -role hub -port 2222</code></p>
  
  <p>Output: </p>
  
  <pre><code>`11:11:24.171 INFO [GridLauncherV3.launch] - Selenium build info: version: '3.14.0', revision: 'aacccce0'
  11:11:24.175 INFO [GridLauncherV3$2.launch] - Launching Selenium Grid hub on port 2222
  11:11:25.108:INFO::main: Logging initialized @2242ms to org.seleniumhq.jetty9.util.log.StdErrLog
  11:11:26.832 INFO [Hub.start] - Selenium Grid hub is up and running
  11:11:26.832 INFO [Hub.start] - Nodes should register to http://172.20.111.25:2222/grid/register/
  11:11:26.832 INFO [Hub.start] - Clients should connect to http://172.20.111.25:2222/wd/hub`
  </code></pre>
  
  <p>Checked the config page on localhost and saw that it was there. </p>
  
  <p>Step 2: 
  Entered this into the command line in Windows Virtual Machine: </p>
  
  <p><code>java -jar selenium-server-standalone-3.14.0.jar -role node -hub http://172.20.111.25:2222/grid/register</code></p>
  
  <p>Output: </p>
  
  <p><code>10:18:43.108 INFO [GridLauncherV3.launch] - Selenium build info: version: '3.14.0', revision: 'aacccce0'
  10:18:43.155 INFO [GridLauncherV3$3.launch] - Launching a Selenium Grid node on port 18004
  2019-06-03 10:18:43.676:INFO::main: Logging initialized @1482ms to org.seleniumhq.jetty9.util.log.StdErrLog
  10:18:44.108 INFO [SeleniumServer.boot] - Selenium Server is up and running on port 18004
  10:18:44.108 INFO [GridLauncherV3$3.launch] - Selenium Grid node is up and ready to register to the hub
  10:18:44.280 INFO [SelfRegisteringRemote$1.run] - Starting auto registration thread. Will try to register every 5000 ms.
  10:18:44.280 INFO [SelfRegisteringRemote.registerToHub] - Registering the node to the hub: http://172.20.111.25:2222/grid/register
  10:19:06.003 INFO [SelfRegisteringRemote$1.run] - Couldn't register this node: Error sending the registration request: Failed to connect to /172.20.111.25:2222</code></p>