Portmap

I need to use portmap (tcp 111) to get the portnumber I should connect to to start RPC calls.

How to use the portmap protocol in Xojo ?

Portmap at Wikipedia