Refactored PassMessageThread to actually use the ip address provided and not rely on Globals. Commented.