Changing code to try port 5672 first and then on exception try port 80.