ServiceInfo info = new ServiceInfo("_http._tcp.local.", "foo", 1267, 0, 0, "path=index.html");
ServiceInfo info = new ServiceInfo("_http._tcp.local.", "foo", 1268, 0, 0, "path=index.html");
    public static void main(String[] args) {        try {            System.setProperty("jmdns.debug", "0");            System.out.println("Opening JmDNS");            JmDNS jmdns = new JmDNS();            System.out.println("Opened JmDNS");            System.out.println("\nPress r and Enter, to register HTML service 'foo'");            int b;            while ((b = System.in.read()) != -1 && (char) b != 'r');            ServiceInfo info = new ServiceInfo("_http._tcp.local.", "foo", 1267, 0, 0, "path=index.html");            jmdns.registerService(info);                        System.out.println("\nRegistered Service as "+info);            System.out.println("Press q and Enter, to quit");            //int b;            while ((b = System.in.read()) != -1 && (char) b != 'q');             System.out.println("Closing JmDNS");            jmdns.close();            System.out.println("Closed JmDNS");            System.exit(0);        } catch (IOException e) {            e.printStackTrace();        }    }