Replaced the UDP call with a TCP version.

Could not get UDP to work and abandoned for now. Will need to be addressed in future, UDP is a desirable option.