Tcp server adapted to other code. Terminal configuration available