綁定帳號登入

Android 台灣中文網

tag 標籤: 位址

相關帖子

版塊 作者 回覆/查看 最後發表
無法取得IP位址 ViewSonic ViewPad 7 luuhuming 2011-8-7 3 26873 hung3527 2012-2-11 12:20
郵件新增帳號的伺服器位址不對 HTC Sensation/XE emma0611 2012-5-13 1 437 f125950f125950 2012-5-14 20:29
分享一下修改打者的位址換算法(迷版1.0.6) 九局職業棒球 bleaf0125 2013-3-5 4 2053 oau68805145 2011-9-2 11:33
(0702更新)最新FlyVPN伺服器位址 attachment LINE 主題交流 joan1223 2013-3-25 85 13000 jeffdede 2013-7-23 17:05
懸賞 如何修改I-9103的mac位址(已root) - [懸賞 7 個碎鑽] Galaxy R I9103 liouchia 2013-5-22 3 2442 chardman 2013-6-22 17:19
燒餅位址問題 - [懸賞 10 個碎鑽] 神魔之塔 GM010 2013-9-29 0 555 GM010 2013-9-29 23:48
Ios記憶體位址 神魔之塔 xox664422 2013-10-30 0 502 xox664422 2013-10-30 23:44
3.27初階找尋位址,以址找址 attachment 神魔之塔 jackson7015 2013-11-4 80 8196 aboy923 2014-9-14 22:48
pokopang 教學&可修改項目位址12/19更新 attach_img Line Pokopang smallmoon329 2013-12-14 97 37791 clinj 2015-1-6 05:51
求邀請好友數量的位址... LINE 遊戲交流 小憨憨o 2014-2-7 3 5549 z043838 2014-4-15 14:48
關於燒餅改三圍位址 神魔之塔 水是無形的 2014-3-9 2 820 玄日 2014-3-11 13:23
[蝙蝠]快速找出金錢位址 刀塔傳奇 cucubutter 2014-9-18 30 17995 wlshieh 2014-10-22 16:48
新版3.1.1 求IOS+IGG改蛋數位址的找法 怪物彈珠 ciou6121 2015-1-15 15 1744 dennis91 2015-1-22 10:21
crusaders quest 修改位址變動 Android 遊戲交流 joystationok5 2015-3-23 23 5627 mogril 2015-4-16 17:38
【關閉】 - [閱讀權限 255]attach_img Android 軟體下載 陳瑋銘 2015-9-21 47 8265 jackchen6516 2017-9-29 21:38
導航王圖資下載位址 Forum GFON 2016-10-11 0 0 GFON 2016-10-11 09:30
求黑貓問答各項位址 問答 RPG 魔法使與黑貓維茲 asd065 2016-11-3 0 505 asd065 2016-11-3 08:10
PC軟體下載位址 我在論壇的記事簿 GFON 2017-6-11 0 0 GFON 2017-6-11 18:30
最終幻想6 (FF6) 修改資料記憶體位址 Android 遊戲交流 unify 2017-8-1 3 12897 ga8828151 2023-4-13 15:01
遊戲王1.9版 記憶體位址 - [閱讀權限 8] 遊戲王 決鬥聯盟 waynecuo 2017-8-29 0 202 waynecuo 2017-8-29 18:46

相關日誌

分享 取得 廣播 IP 位址
jianrupan 2013-10-25 10:16
// 取得目前 IP Address public InetAddress getIpAddress() { try { InetAddress inetAddress = null ; InetAddress myAddr = null ; for (EnumerationNetworkInterface networkInterface = NetworkInterface. getNetworkInterfaces (); networkInterface.hasMoreElements();) { NetworkInterface singleInterface = networkInterface.nextElement(); for (EnumerationInetAddress IpAddresses = singleInterface.getInetAddresses(); IpAddresses.hasMoreElements();) { inetAddress = IpAddresses.nextElement(); if (!inetAddress.isLoopbackAddress() (singleInterface.getDisplayName().contains( "wlan0" ) || singleInterface.getDisplayName().contains( "eth0" ))){ myAddr = inetAddress; } } } Log. e ( "getIpAddress" , "My IP: " +myAddr); return myAddr; } catch (SocketException ex) { Log. e ( "getIpAddress" , ex.toString()); } return null ; } // 取得廣播 IP Address public InetAddress getBroadcast(InetAddress inetAddr) { NetworkInterface temp; InetAddress iAddr = null ; try { temp = NetworkInterface. getByInetAddress (inetAddr); ListInterfaceAddress addresses = temp.getInterfaceAddresses(); for (InterfaceAddress inetAddress:addresses) iAddr=inetAddress.getBroadcast(); Log. e ( "getBroadcast" , "Brodcase IP: " +iAddr); return iAddr; } catch (SocketException e) { e.printStackTrace(); Log. e ( "getBroadcast" , "getBroadcast" +e.getMessage()); } return null ; }
個人分類: 軟體應用|322 次閱讀|0 個評論