Help!!!

Is there any way in Java that I can get the default gateway ip of an ancess point? I was

told I would have to use a JNI. Do you know of any other way?

Also I know I can open up a command prompt, type in "ipconfig" and I can get the default

gateway ip. Is there anyway to print that to a text file automatically?

Any help will be appreciated.

Cheers

-JPIT

[397 byte] By [JPITa] at [2007-11-27 11:52:48]
# 1

you could exec a batch file (if using Windowz) and redirect the output to a file. For reference look here:

http://forum.java.sun.com/thread.jspa?forumID=31&threadID=5196302

Next time, PLEASE use a more "helpful" subject line. We know you need help, else you wouldn't be posting, but if instead you stated: "trying to find default gateway ip of access point" you'd have a much better chance of not pissing anyone off, and getting an expert to look at your question.

petes1234a at 2007-7-29 18:46:42 > top of Java-index,Java Essentials,New To Java...
# 2

thx for the heads up.

JPITa at 2007-7-29 18:46:42 > top of Java-index,Java Essentials,New To Java...
# 3

Also, the Java Networking forum would be more appropriate.

Cheers,

java_knighta at 2007-7-29 18:46:42 > top of Java-index,Java Essentials,New To Java...