Skip to main content



      Home
Home » Eclipse Projects » Mosquitto » Mosquitto on EC2 with two network interfaces not working
Mosquitto on EC2 with two network interfaces not working [message #1845132] Fri, 08 October 2021 08:04
Eclipse UserFriend
Been struggling with this for a couple of days now.

I have an EC2 instance on AWS with two network interfaces. Both have separate Elastic/public IPs assigned to them.

The problem is that I can subscribe and publish to the private IP of the broker bound to one of the interfaces but not the public IP. Inbound ports are open and no other firewall present.

have searched the web but the only solutions suggested was to remove the IP and put a listener on port only. This will not work for me since I have to specify one of the network interfaces to avoid port conflict with the other network interface.

The listener row in config looks like this:
listener 8883 <private_ip>

If I put the public IP there instead, I get the error message "Error: Cannot assign requested address", probaby since the interface is assigned to the private address and not the public.

Any idea on how to solve this?
Previous Topic:Problem with intallation Mosquitto on Raspbian Jessie
Next Topic:routing MQTT messages
Goto Forum:
  


Current Time: Fri Oct 31 18:26:17 EDT 2025

Powered by FUDForum. Page generated in 0.04386 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top