Yes, you understand it right.
This script allows you to upload and download rpd file to and from a remote server. In that case, you should specify the server by passing its hostname and port.
Thanks Andrew for the tip! I tried it out and am getting an error. However, this is a bug for my version 18.104.22.168.0 as indicated by Oracle.
I will try the workaround!
The solution from this note works well. All you need to do is to copy files mentioned from a server to a client.