Please Note before marking this as duplicate: I have already checked and it did not work.
Re-raising this again as my previous post was marked as a duplicate and was closed. The solution provided by the person who marked it as a duplicate did not work.
and
Here is the message that I get when I try to run the TestNG.xml
Message: [RemoteTestNG] detected TestNG version 6.14.3
Starting ChromeDriver 79.0.3945.36 (3582db32b3339e8f4d9ed1816f143-refs/branch-heads/394@14}) on port 14625
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
Windows 10 OS.
Note that I have already tried the following as per the solution provided in other reported issues in Stackoverflow:
I am using chrome version 79 and not v73.
Downloaded the latest version of the chrome driver for version 79 from this link
Tried
workaround.bat
with the following text which did not work.C:\p<>\chromedriver.exe --whitelist-ip %*