Model output port and protocol and IP

Where can I find the port and protocol on which HF models return their output.
I plan on developing my own UI and get direct responses from the model to the UI.

Is it something that is possible?