/*
 * Copyright 2014 Y12STUDIO
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package bkbc.tool.jetty.workshop;

public class MainApp {

	public static void main(String[] args) {
		try {
			new JettyCrosServer().start();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}

@@ -624,30 +624,903 @@
 p;%0A%0A
-public class MainApp %7B
+import java.net.InetAddress;%0Aimport java.net.NetworkInterface;%0Aimport java.net.SocketException;%0Aimport java.util.Enumeration;%0A%0Aimport com.google.common.net.InetAddresses;%0A%0Apublic class MainApp %7B%0A%09%0A%09public static void printNetworkIp() throws SocketException%7B%0A%09%09Enumeration%3CNetworkInterface%3E interfaces = NetworkInterface.getNetworkInterfaces();%0A%09%09while (interfaces.hasMoreElements())%7B%0A%09%09    NetworkInterface current = interfaces.nextElement();%0A%09%09    //System.out.println(current);%0A%09%09    if (!current.isUp() %7C%7C current.isLoopback() %7C%7C current.isVirtual()) continue;%0A%09%09    Enumeration%3CInetAddress%3E addresses = current.getInetAddresses();%0A%09%09    while (addresses.hasMoreElements())%7B%0A%09%09        InetAddress addr = addresses.nextElement();%0A%09%09        if(InetAddresses.isInetAddress(addr.getHostAddress()))%7B%0A%09%09        %09System.out.println(%22IP:%22+addr.getHostAddress());%09%09        %09%0A%09%09        %7D%0A%09%09    %7D%0A%09%09%7D%0A%09%7D
 %0A%0A%09p
@@ -1567,16 +1567,37 @@
 %09%09try %7B%0A
+%09%09%09printNetworkIp();%0A
 %09%09%09new J

print docker image ip #27