首页 > 技术文章 > android 通过socket获取IP

feijian 2015-10-26 19:55 原文

 

如题《android 通过socket获取IP》:

socket.getInetAddress().getHostAddress();

 

推荐阅读