Using Download clients from external sonarr

I want to use the download clients but my sonarr is external to the server. How would I do this. because when I try to put in the local ip that the sever has, and the port that the download client has. sonarr is unable to find anything.

why not run sonarr on the same machine?