The mediator server unwraps the actual data before forwarding it to the remote host in question.
In this situation, the application plays the role of a tunneling client, while the remote host plays the role of the server being communicated with.