1、网络侧开发
package com.dt.java.test;
import java.io.PrintStream;
import java.net.ServerSocket;
import java.net.Socket;
public class JavaNet {
public static void main(String[] args) throws Exception {
/*
InetAddress local =null;
InetAddress remote = null;
local = InetAddress.getLocalHost();
remote= InetAddress.getByName("www.baidu.com");
System.out.println("Local ip " + local.getHostAddress() );
System.out.println("remote ip "+remote.getHostAddress());
URL url = new URL("http://www.baidu.com");
InputStream inputStream = url.openStream();
Scanner scanner =new Scanner(inpu
