I'm trying to disable and enable the network connection in my java application, i searched a lot how to do it as I'm a beginner but i didn't find a direct implementation in java to do it, i found the best approach is executing the below command:
netsh interface set interface <interface name> disable
but how to get the interface name for a given IP Address?
serouja louba wrote:Hello JavaRanch, any updates on this topic pleaseeeee!
What update do you need? Your last post showed that it worked for you too. Your interface name is "eth3".
[EDIT] Oh I see... Windows.... .... You need the form that is used by "netsh". Well. one option is to get it from "netsh" via a show interface command. Of course, this will mean that you will need to do an another exec().
hai, iam new to this forum and i need a suggerstion.
I have to connect to remote server which is using ssh2 protocol using java application. I am new to java. I have referred the ch.ethz.ssh2.* api but couldnot get any sample examples. Can some one guide in this please.. its dam urgent for me.
Sorry if i posting this toa wrong category.