added method to judge if is network error while connectting server