JAVA Socket获取服务端信息

1、Socket.getInetAddress(),获取服务端地址。

2、Socket.getPort(),获取服务端端口。

 

posted @ 2015-09-21 14:41  邱明成  阅读(948)  评论(0编辑  收藏  举报