Added server part of TCP communication