简体   繁体   中英

server client communication using socket in java

clientSocket = new Socket(args[0], 4442); ServerSocket serverSocket = new ServerSocket(1111);

client sever sockets full knowlege about

how we decided port no.and socket no. ???

Socket myClient = new Socket(ipAddress, PortNumber);

我想这会帮助你

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM