Hard-coding port numbers is a bad idea. Use the discovery method as pointed out by Brian in the post above in this thread: