Added hostname detection to work around name resolution problems or if the otrs system is not listening on localhost.
Added hostname detection to work around name resolution problems or if the otrs system is not listening on localhost.

djoudi/otrs-gitimport-test,djoudi/otrs-gitimport-test,djoudi/otrs-gitimport-test