linux - How do I find out the IP addresses of PCs that access my Ubuntu machine's WLAN interface, using Java code? -


i limit resource access 1 client @ time.

if 2nd unique client tries access pc (which acting server) should not allowed, until previous client done work (or specified time).

by tracking ip addresses accessing resource, block/unblock clients accessing or transferring data.

is there way develop java application call linux networking apis in order details of these events, including ip address of client?

via command line, can see remote ip's accessing each of interfaces using netstat -unt. however, application, better off maintaining list of connected clients in shared database. sure track when connection made or last transmitted data can expire stale data.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -