You can view the relevant connection data to your Microsoft Dynamics 365 Business Central company on the edoc archivelink page for the system mappings.
Click on Information for connection settings in the menu to open the dialog with the information for establishing a connection with edoc archive service.
In this dialog you will find the server instance, the default port and the company ID.