title: How to get the clients ip address from the server?
body: <p>I have problem where I can't get the clients Ip from the server to store it into a variable then into a dictionary. I've tried to use getAddress() but it's not working it give a message says " can't find symbol" .</p>
  
  <pre><code>try {
          DatagramSocket IN_socket = new DatagramSocket(3000);
          DatagramSocket OUT_socket = new DatagramSocket(8000);
          IN_socket.setSoTimeout(0);
          Inet4Address addrs = DatagramSocket.getAddress() ;
          byte[] buffer = new byte[1024];
          DatagramPacket packet = new DatagramPacket(buffer, buffer.length);
  </code></pre>