i have two questiones about network,and my english is so poor,thanks for you help
1, how can i get gateway ip from java? 2, InetAddress class error:while i start application,i get localAddress was 192.168.0.1,and after i change machine ip to 192.168.0.2,InetAddress return also 192.168.0.1(application no stop),is InetAddress class error? btw: my code is InetAddress.getLocalHost().getHostAddress();