How do I make MetaDefender Core listen on a different port?

By default, MetaDefender Core listens on port 8008. If you would like it to listen on a different one or your company policies require that, following the below instructions is enough. Please note that you must check for port conflicts before following the steps:

  1. Open the <MetaDefender Core installation directory>\REST\Config folder (e.g., C:\Program Files (x86)\OPSWAT\MetaDefender Core X\REST\Config).

  2. Open the applicationhost.config file in a text editor.

  3. Go to the <sites> tag and replace the 8008 from below line with a different port number:

    images/download/attachments/5221997/80.png

    <binding protocol=”http” bindingInformation=”:8008:”/>

  4. If desired, you can also enable HTTPS at this step by adding another line:

    images/download/attachments/5221997/443.png

    <binding protocol=”https” bindingInformation=”:443:”/>

  5. Save and close the applicationhost.config’ file.

  6. Restart the Metascan Rest service.

  7. Test that the site is working properly by visiting “127.0.0.1” or “localhost”.

This article applies to MetaDefender Core v3
This article was last updated on 2019-12-19
CN