Hi,
I need to get all pc IP that exists in the network,
For the example, There are 4 PC in-network with IP 192.168.1.1,192.168.1.2,192.168.1.3,192.168.1.4
How can I get theirs?
In my app, I need to find a server broker IP with scan IPs and connect to the broker
Thanks
Hi, Is there any way to make Jetty to use only WIFI interface or only ethernet interface? Example: if I disconnect ethernet, and start Jetty, it will take IP from WiFi, but if I start it when both interfaces are up and connected it will use ethernet as default. So, how can I give him the...
Hi,
I need to get all pc IP that exists in the network,
For the example, There are 4 PC in-network with IP 192.168.1.1,192.168.1.2,192.168.1.3,192.168.1.4
How can I get theirs?
In my app, I need to find a server broker IP with scan IPs and connect to the broker
Thanks
The jShell library allows you to start other programs. It is based on Apache Commons Exec project: http://commons.apache.org/proper/commons-exec/index.html The programs are always started asynchronously. ProcessComplete event is raised when the process completes. The following code will run...
...Another thing you can do, for me is better to do that...
is to make an "ip scanner"... you will get first your IP...
for the example let's say your ip is "192.168.168.37", create array for IPsOfLan, and add this as first...
You will keep only the three numbers (or crop until the last full stop) create a loop.. 1 to 254 (x)
Then into loop you are going to "ping" with jshell (-n times of trying, in a local lan is ok to be 1, if you have wifi devices... you can make it longer ...3 or 4)
Note that may be some ips not answer (because of firewall, av)... but the ping will make the job...
now... out of the loop... using jshell... (arp -a or -g is the game)
Will get all the ips exist in your network !!! (search for 192.168.168.x)...add only these ips at your array, with using REGEX split, or anything you want (there are plenty and fast string subs that you can use) also you cna get all mac of their interfaces in other array...
No only the PCs, also wifi, devices, pos... anything connected to your router, including it
Hi there, Well I ve created a simple IP Scanner for Windows only (runs sure at, 7, 8, 8.1, 10, 11)... It uses jShell Library, so cmd, also ping.exe, ipconfig.exe, arp.exe... Is a good example how to use String, Regex, substring, indexof, Wait For... I am attaching only the .jar file - i...
Hi there, Well I ve created a simple IP Scanner for Windows only (runs sure at, 7, 8, 8.1, 10, 11)... It uses jShell Library, so cmd, also ping.exe, ipconfig.exe, arp.exe... Is a good example how to use String, Regex, substring, indexof, Wait For... I am attaching only the .jar file - i...