But how to do that? I have found out, that TCP/IP sockets do not mean, that it is necessary to have active Wifi or Mobile connection. It seems to me, that it is really possible to use ports locally and that data will be transferred by using RAM of The device and may be TCP/IP stack.