Default Gateway IP?

Is there any way in Java that I can get the default gateway ip of an acess 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

[384 byte] By [JPITa] at [2007-11-27 11:52:49]
# 1

better subject line, but DON'T cross post. This goes against forum etiquette and will get you flamed if you do it again.

petes1234a at 2007-7-29 18:46:47 > top of Java-index,Java Essentials,Java Programming...
# 2

thx again for the heads up.

JPITa at 2007-7-29 18:46:47 > top of Java-index,Java Essentials,Java Programming...