Provide the proxy settings when your SharePoint server is outside your network.
From the Embedded Web Server, navigate to the configuration page for the application:
Apps > Scan to SharePoint > Configure
From the Proxy Settings section, type the proxy host name and port number.
Click Apply.