This is app made from examples for socket connection based on ServerSocket and Socket . Problem occur in simple test where just one client on one pc send messages on other pc server. Sending short string like"123" from text field on press enter, made closing receiving server without any event on server side, and activating server again connection works till next speed burst of data. Maybe also that in my app is some misusing details! How I notice this braking connection is with help of micro switch button which made quick on/off state in one push and he's state is send to server but this quick burst of data crash connection.