Answer:
It does all of these
Step-by-step explanation:
The stub is able to do all of what we have in this question. It can locate computer connections, locate ports on a computer, transit message to server etc.
in distributed computing, a stub is a piece of code that does the work of converting parameters that are passed between the client and the server at a time of remote procedure call.
The main objective of an RPC is to allow the client to call procedures remotely on another server.