title: How can I bind serversocket to specific IP?
body: <p>If I have a <code>String</code> representing an IP address (IPv4 or IPv6) how can I create a <code>ServerSocket</code> and bind to this IP without caring if the IP passed in, is IPv4 or IPv6?<br>
  I see that there is a constructor:<code>ServerSocket(int port, int backlog, InetAddress bindAddr)</code> but <code>InetAddress</code> does not seem to offer any constructors and its subclasses have names specific to IPv4 and IPv6.<br>
  So how can I bind the socket to the IP?  </p>