title: How do servers get client's IP and port number TCP?
body: <p>In UDP I used:</p>
  
  <pre><code>InetAddress IPAddress = receivePacket.getAddress(); 
  
  int port = receivePacket.getPort(); 
  
  System.out.println ("From: " + IPAddress + ":" + port);
  System.out.println ("Message: " + sentence);
  </code></pre>
  
  <p>I'm confused about TCP.  How do servers get the client's IP and port number using TCP?</p>