连接

xiaoxiao2021-02-27  444

package com.陈巧; import java.net.Socket; public class Test { public static void main(String[] args) {   try { //创建连接通道 Socket connet=new Socket("192.168.2.121",9090); //对方:IP地址192.168.2.121是字符串      9090端口 } catch (Exception e) { } } }
转载请注明原文地址: https://www.6miu.com/read-3722.html

最新回复(0)