Added support for connecting to printer through TCP