1.命令窗口配置网络连接指定IP netsh interface ip set address "本地连接" static IP地址 子网掩码 默认网关 例:netsh interface ip set address 10.1.1.1 255.255.255.1 10.1.1.123 DNS配置 netsh interface ip set dns name="本地连接" source=static addr=DNS服务器地址 register=PRIMARY v
1.客户端一个http连接包含两个方向,一个是这个http连接的输入,另一个是这个http连接的输出. 利用httpclient进行ip地址和端口号连接后,http的输出端作为http请求参数设置.http输出端用于http请求设置. http输入端,用于接收服务端传回来的数据. 其中有个关键的http.openConencetion()方法来启动连接.和httpConn.getInputStream()用于接收服务器端返回的数据. .客户端获取json字符串 public class Http