Modifications - added 'ServerHostname' for programmatically setting hostname when connecting by IP address.