I need to connect to server via TCP

I already know how to use sockets in eu4 for the most part. the only thing I need to know is how to connect my TCP socket to the session the client has connected to. specifically, I need the FInternetAddr that the client is connecting to.

Side question: Would be better for the client to create a listen socket and connect to that from the server? Either way, I need the FInternetAddr of the connection.