title: how to get a byte[] representation from a IP in String form in Java
body: <p>Suppose I have the IP stored in a String:</p>
  
  <p>String ip = "192.168.2.1"</p>
  
  <p>and I want to get the byte array with the four ints.
  How can I do it? Thanks!</p>