In windows, port 8081 is used by the Mcafee Anti-Virus "FrameWork.exe" process according to "netstat -b", we will face the port conflict when we spin up Artifactory.
All windows machines which use Mcafee as anti-virus.
When trying to run Artifactory the following error in the 'catalina.out' log (under '$ARTIFACTORY_HOME/tomcat/conf' folder) appears:
SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8081"]
java.net.BindException: Address already in use: JVM_Bind <null>:8081
Even after stopping the Artifactory service (is Artifactory was installed as service) and rebooting the machine, the error still appears.
When running 'netstat -b' command in the console it shows that "FrameWork.exe" process is listening to port 8081 which indicates that the Mcafee Anti-Virus is using this port.
In order to change the listening port of the Mcafee Anti-Virus the following file should be modified:
'C:Documents and SettingsAll UsersApplication DataMcAfeeCommon Frameworkagent.ini'
Modify the following section to a different port: