I am having a dilema with RPC. I have 2 systems separated by a firewall. Lets say system A is outside and system B is inside. Port 111 is open from system A to B. Port 32000 is also open from system A to B. B is running a program which registers port 32000 with RPC, and it changes everytime the program restarts. System A is unable to communicate to system B once the program restarts and registeres port 32345 and the firewall needs to be reconfigured.
My question is:
How would I force my RPC program to listen on a specific port such as the NFS process? It always gets port 2049 and I'd like to have my program always get port 32000 from the portmapper.