TCP communications to devices inside a computer network or connected to a cell modem are setup with the device command by setting the type attribute to "tcp" and assigning the correct values for the TCP port and IP address or hostname. It is advisable to test these settings in the Terminal Emulator before attempting profile communication.