Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT with python over proxy #548

Closed
Sandyroy95 opened this issue Feb 22, 2017 · 1 comment
Closed

MQTT with python over proxy #548

Sandyroy95 opened this issue Feb 22, 2017 · 1 comment

Comments

@Sandyroy95
Copy link

Hi guys,

I am trying to create an mqtt connection in python inside a corporate network.Unfortunately ports 8883 and 1883 are blocked,which makes it hard for MQTT applications to connect to any broker that resides outside the corporate network.Port 80 and 443 are not optimal for MQTT traffic if there’s a HTTP Proxy deployed. Can anyone please suggest a possible way for reaching outside MQTT brokers in restricted networks, especially if a HTTP proxy is in place? I am attaching a code snippet for your reference:

import paho.mqtt.client as paho

def on_connect(client,userdata,flags,rc):
print("Connection ack recieved wirh code %d." %(rc))

client=paho.Client(client_id="someclientid")
client.tls_set('/path/cert.ks','/path/cert.ts')
client.on_connect=on_connect
client.connect("ssl://hostname",8883,60)

@cgoldberg
Copy link
Member

I'm closing this since it isn't a Locust specific issue.
a better place to ask might be https://github.com/eclipse/paho.mqtt.python/issues or an Eclipse or MQTT forum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants