当前位置:网站首页>93. Obtenir toutes les adresses IP de l'Intranet
93. Obtenir toutes les adresses IP de l'Intranet
2022-06-12 10:13:00 【Jasonakeke】
Catalogue des articles
Description du sujet
Titre:Lors de la programmation réseau,Parfois, il faut traverser tous les hôtes du réseau local,Pour ce faire, vous devez obtenir tous lesIPAdresse.
Réalisation du titre:Obtenez tout sur l'intranetIPPetite application de l'adresse.
Comment résoudre le problème
Créer une classe:GainAllIpFrame,Succession JFrame Classe de formulaire.
Définir un gainAllIp() Méthodes:Pour obtenir tous les IP,Et la méthode affichée dans le champ texte
Définir une classe interne PingIpThread,Et c'est une classe de thread.Utilisé pour juger d'un IP Si c'est Intranet IP Objet fileté pour
La logique d'exécution de la classe thread est spécifiée pour IP En cours ping Accès à
Pour obtenir cette machine IP Adresses et segments
InetAddress host = InetAddress.getLocalHost()边栏推荐
- 传输层协议 ——— TCP协议
- FPGA基于DE2-115平台的VGA显示
- Antique mfc/gdi+ Frame LCD display control
- [DDS] dds-rpc implementation based on opendds
- one
- Circuitbreaker fuse of resilience4j - circuitbreakerregistry register
- Using C language code to realize factory LCD RGB test program
- [MySQL] index invalidation and index optimization
- IoT简介
- Auto. JS learning note 9: basic methods such as using the script engine, starting the script file with the specified path, and closing
猜你喜欢

【926. 将字符串翻转到单调递增】

MySQL optimized slow log query

基于SSM实现水果商城批发平台

FPGA VGA display based on de2-115 platform

First NFT platform in dfinity Ecology: impossible thoughts

Implementation principle of redisson distributed lock

Halcon combined with C # to detect surface defects -- affine transformation (III)

How to implement Web3.0 and digital fashion?

JVM (VI) Virtual machine bytecode execution engine (with stack execution process and bytecode instruction table)

C 语言仅凭自学能到什么高度?
随机推荐
机器学习之数据处理与可视化【鸢尾花数据分类|特征属性比较】
SAP Hana error message sys_ XSA authentication failed SQLSTATE - 28000
Circuitbreaker fuse of resilience4j - circuitbreakerevent event
2021-02-21
The white paper "protecting our digital heritage: DNA data storage" was released
UE4_ Explore the method of creating background scenes with ready-made resources
IoT简介
Checkpoint of the four cornerstones of Flink
Theoretical explanation of hash table
JVM (III) Virtual machine performance monitoring & fault handling tool
MySQL 4 Database table storage structure & tablespace
Code types and data structures corresponding to the five object types of redis
Redis (II) Memory mapped data structure
[MySQL] learn more about the clustered indexes and auxiliary indexes (b+ tree indexes) in InnoDB
List of computer startup shortcut keys
redis学习记录:字典(dict)源码分析
CLAHE in opencv for 16 bit image enhancement display
Access and traversal of string class objects
MySQL VI Database lock
one