MULE-8130: Null pointer exception on the first request causes the listener to close the connection

Changed the listener so that only IP addresses are used internally instead of host names.