如何使用java的serversocket获取客户端的ip
1个回答
2016-09-24
展开全部
accept时,得到和客户连接的Socket,就可以
InetAddress
getInetAddress()Returns the address to which the socket is connected.
来取得IP了
InetAddress
getInetAddress()Returns the address to which the socket is connected.
来取得IP了
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询