How to resolve “org.openqa.selenium.remote.http.ConnectionFailedException: Unable to establish websocket connection to http://localhost”?

In this video we will see how to fix/resolver selenium error “Exception in thread “main” org.openqa.selenium.remote.http.ConnectionFailedException: Unable to establish websocket connection to http://localhost:64162/devtools/browser……”. Code: