Closed JuliusCesar23 closed 10 months ago
This port is used by service.
var service = ChromeDriverService.CreateDefaultService(
Path.GetDirectoryName(driverExecutablePath),
Path.GetFileName(driverExecutablePath));
if (port != 0)
service.Port = port;
it is but it need to listen on that port also, try to set a port in the Constructor to see if it sets the port and opens the browser now
tested on chrome 115 using this chromedriver https://github.com/AntidetectBrowser/ChromeDriverBypassCloudflareForWindow
this change is wrong, sorry for inconveniences
To use a custom port with the Create() Constructor the debug port and the chromdriver port has to be the same, with this change if there is a pre set port the port listener and the chromedriver port would be the same and the can connect