Recommended solutions based on your search
Check if ip adress is correct, if the port is correct, and if the server is up and running and waiting for connections. Also, check if there's no firewall blocking you and if your internet connection is working.
To restart the Selenium Webdriver mock browser in a testcase, first use
driver.close()and then reinstantiate the driver.
Solutions on the web