It was a silly mistake, I have forgotten to uncomment the username and password, its working now

Best posts made by Matt Pitts
-
RE: W5100 MQTT gateway fails to connect to broker
It was a silly mistake, I have forgotten to uncomment the username and password, its working now