the mqtt default port is 1883 but if are running on a different port just like http you can specify port e.g. ( curl mqtt://localhost:1883 ) the proper test would be to subscribe and publish to a topic which can also be done somewhat with curl e.g. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.