While making RemoteWebDriver object we need to pass URL and DesiredCapability Object. Browsing through different tutorial on net I found that in some they were passing URL of Node while in others they were passing URL of HUB. Please clarify which one is to be used Hub or Node Url. https://github.com/SeleniumHQ/selenium/wiki/Grid2
WebDriver driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"), capability);
while in this tutorial & others they have used url of nodes http://www.guru99.com/introduction-to-selenium-grid.html