Fixnetwork

Two commits for fixing Issue 417 (http://code.google.com/p/connectbot/issues/detail?id=417) and another similar.