ping一个内网地址,如果可以ping通的话,就用内网,否则,就用外网。
http://www.foxtable.com/help/topics/1401.htm
http://www.foxtable.com/help/topics/0682.htm