如何获得目前的Andr​​oid活跃wifiNetwork的端口号 [英] How to get Port number of wifiNetwork active currently in android

查看:184
本文介绍了如何获得目前的Andr​​oid活跃wifiNetwork的端口号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有,我需要当前连接Wifi网络的提供IP地址和端口号的要求。

I have an requirement where i need to supply IP address and Port number of currently Connected Wifi network.

我收到 IP地址使用 WifiInfo 上课 getIpAddress()方法。

但我不能够得到端口号..
请提供合适的解决方案../

But i am not able to get Port number.. Kindly provide an appropriate solution../

推荐答案

WLAN的端口号?

您是通过使用WifiManager dooing权利。没有,这就是为什么你不能得到端口号WLAN端口。

You are dooing right by using the WifiManager. There is no WLAN port that's why you can't get the portnumber.

这篇关于如何获得目前的Andr​​oid活跃wifiNetwork的端口号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆