How can I determine the IP of my router/gateway in Java? I can get my IP easily enough. I can get my internet IP using a service on a website. But how can I determine my gat
On windows parsing the output of IPConfig will get you the default gateway, without waiting for a trace.