selenium hub for windows code example
Example 1: selenium grid configuration
java -jar selenium-server-standalone-2.53.1.jar -role hub -hubConfig hubconfig.json
Example 2: how to configure selenium grid to driver
I configure my driver class to run remote test.
DesiredCapabilities.desiredCapabilities = new DesiredCapabilities();
desiredCapabilities.setCapability("browser","chrome");
URL gridUrl = new URL("http://ipAdress.4444/wd/hub");
driverPool.set(new RemoteWebDriver(gridUrl, desiredCapabilities));