可以查看 LAN 内的所有 IP
嘿,我想知道是否可以查看 LAN 网络的所有 IP,以便您可以使用 IP 发送文件而无需进入互联网? :)
这对你们来说可能是一个愚蠢的问题,但你们解释一下这个问题会给我一个很大的帮助! :D
谢谢!! :)
(ps:是的,它仅用于教育用途:D)
Hey, i'm trying to discover if it's possible to see all IPs of a LAN network so you can send files by using IP without entering the internet? :)
This is probably a stupid question for you guys but you'll do me a really big favor by explaining this! :D
Thanks!! :)
(ps: and yes it's only for educational use :D )
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果这确实适用于 Java,正如您标记的问题一样。然后这里发布了一个很好的解决方案:如何使用Java获取同一网络(子网)中连接的IP列表
如下所示:http://www.rgagnon.com/javadetails/java-0542.html 解释了一个非常简单的客户端-服务器架构,通过 Java 中的套接字传输文件。
If this is indeed for Java as you've tagged the question. Then a nice solution has been posted here: How to get a list of IP connected in same network (subnet) using Java
Something like this: http://www.rgagnon.com/javadetails/java-0542.html explains a very simple client-server architecture, transferring a file via a socket in Java.
TCP/IP 中不存在 LAN 这样的东西。存在子网,并且在给定子网掩码的情况下,可以通过算术轻松枚举它们。
There is no such thing as a LAN in TCP/IP. There are subnets, and they can be easily enumerated via arithmetic, given the subnet mask.