Use the TcpClient class to connect to the server.
Just a FYI, hexadecimal is just a way to represent an integer. You do not send and receive hex, you send and receive bytes. How you choose to format these for display is another story.