moscajs / mosca

MQTT broker as a module
mosca.io
3.2k stars 509 forks source link

Listen on multiple ips (or interfaces) and ports #559

Closed vladbabii closed 7 years ago

vladbabii commented 7 years ago

Can mosca listen on multiple ip/port pairs? If not, is there any way I can also send the original ip to the broker on authorization event?

mcollina commented 7 years ago

See this example: https://github.com/mcollina/mosca/blob/master/examples/Server_With_All_Interfaces-Settings.js.

What do you mean by original ip?

vladbabii commented 7 years ago

I meant the client is. I need to validate authentication with ip port username password client I'd.

Thank you for the example, I used a reverse proxy until now and I was blocked trying to get the client original ip.