ToolsReplicate only uses Lan port to replicate db

Hi I use the {@command([toolsreplicate])} on some databases, this command will only work with internal Office Domino computers because I think by default this command only replicate through the Lan port. When I use this command to replicate a database with an external Domino Server that uses the TCPIP port, it fails. The error message shows “Cannot find destination computer using the LAN port”.If I use domino console to do (replicate thisDB external\thisDB) on the external computer it will work.

So how do I get the @command([Toolsreplicate]) to do replication on the TCPIP port. Or get this script to work on the TCPIP port:

This script replicates the current database with the database replica on the server Berlin.

Dim session As New NotesSession

Dim db As NotesDatabase

Set db = session.CurrentDatabase

Call db.Replicate( “Berlin” )

Subject: You need a connection document to the Server “Berlin” on your machine.