This content has been marked as final. Show 5 replies
You need a tool which will give you this information from the router on the LAN or can snoop all the traffic on the LAN.
Then you can display this in Java. However, there is no pure Java way to obtain this information from other machines.
thanks for the infomation
but can you please give me some detail information means which tool should i use, and how will handle that using java
Purity is overrated. I doubt a network sniffing application is expected to run as an applet or on Java cell phones and TV set top boxes. No language will do that portably and automatically. So instead of "can't do that with purity" let's find a working solution.
You can capture and send raw network packets with jpcap:
There is another library with similar functionality and the same name; google will find that for you. The netresearch version advertises itself as having some advantages over the other one; see their FAQ.
You can use jpcap to see all packets on that machine, however if you are using a switch you will need to make the connection promiscuous so that it see all packets on the network.
hi thanks for the information
plz can you tell me one more thing that how can i filter only internet activity packets, like http for browsing ,ftp for file downloading and other protocols used by some download managers.
using the setfilter in jpcap.
i am also thinking to add another facility for file transffering in a room. so plz put some light on the techniques i should use to do this