Using connect instead of Netcat