Solved TCP server problem