throw new SocketException("no network interface with this name exists");
return null;
  public static NetworkInterface getByName(String name)    throws SocketException  {    Vector networkInterfaces = getRealNetworkInterfaces();    for (Enumeration e = networkInterfaces.elements(); e.hasMoreElements();)      {	NetworkInterface tmp = (NetworkInterface) e.nextElement();	if (name.equals(tmp.getName()))	  return tmp;      }    throw new SocketException("no network interface with this name exists");  }