title: Simple STUN client in java
body: <p>I have found several java STUN implementations</p>
  
  <p><a href="https://stackoverflow.com/questions/5704326/java-and-which-stun-libraries-i-should-use">Java and Which Stun libraries i should use?</a></p>
  
  <blockquote>
    <p>There is </p>
    
    <ul>
    <li>JSTUN: <a href="http://jstun.javawi.de/" rel="nofollow noreferrer">http://jstun.javawi.de/</a></li>
    <li>STUN: <a href="http://java.net/projects/stun" rel="nofollow noreferrer">http://java.net/projects/stun</a></li>
    </ul>
    
    <p>See also: <a href="https://stackoverflow.com/questions/2039147/stun-turn-ice-library-for-java">STUN, TURN, ICE library for Java</a></p>
  </blockquote>
  
  <p>But it is jars with many classes. I wish to find something simple in form of single method or at least single small class. Like following python code.</p>
  
  <p><a href="https://github.com/jtriley/pystun/blob/develop/stun/__init__.py" rel="nofollow noreferrer">https://github.com/jtriley/pystun/blob/develop/stun/<strong>init</strong>.py</a></p>
  
  <p>Reasonable answer why STUN in Java is so huge is also acceptable.</p>