fixing remote client to initialize outsocket in some cases