Closed AlmostRuio closed 3 years ago
Hi!
You didn't show how you expose your broker. I believe containers don't see each other as long as their not in the same network (e.g. bridge). If your broker is running in a container, put both of them into the same network or expose broker/container port on a host port using -p. This should be done on an IP address the mqtt-stresser can actually reach.
Compiling still works on my mac.
┌──[ ab - [~/dev/GOPATH/src/github.com/inovex/mqtt-stresser] - [00h 00m 00s] - master
└──[ make clean all
rm -rf build/
GO111MODULE=on GOOS=windows GOARCH=amd64 go build -mod=vendor -o build/mqtt-stresser-windows-amd64.exe
GO111MODULE=on GOOS=darwin GOARCH=amd64 go build -mod=vendor -o build/mqtt-stresser-darwin-amd64
GO111MODULE=on GOOS=linux GOARCH=amd64 go build -mod=vendor -o build/mqtt-stresser-linux-amd64
GO111MODULE=on CGO_ENABLED=0 GOOS=windows GOARCH=amd64 GOARM= go build -mod=vendor -a -installsuffix cgo -o build/mqtt-stresser-windows-amd64-static .
GO111MODULE=on CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 GOARM= go build -mod=vendor -a -installsuffix cgo -o build/mqtt-stresser-darwin-amd64-static .
GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOARM= go build -mod=vendor -a -installsuffix cgo -o build/mqtt-stresser-linux-amd64-static .
GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=5 go build -mod=vendor -a -installsuffix cgo -o build/mqtt-stresser-linux-arm5-static .
GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=6 go build -mod=vendor -a -installsuffix cgo -o build/mqtt-stresser-linux-arm6-static .
GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build -mod=vendor -a -installsuffix cgo -o build/mqtt-stresser-linux-arm7-static .
┌──[ ab - [~/dev/GOPATH/src/github.com/inovex/mqtt-stresser] - [00h 00m 34s] - master
└──[ sw_vers
ProductName: macOS
ProductVersion: 11.0.1
BuildVersion: 20B50
┌──[ ab - [~/dev/GOPATH/src/github.com/inovex/mqtt-stresser] - [00h 00m 00s] - master
└──[ go version
go version go1.15.2 darwin/amd64
Please also have a look at the example in the README file and use a fully qualified URI like tcp://broker.mqttdashboard.com:1883
.
Hi @arnisoph ,
Thank you, you're right about docker containers network. I resolved by building (go was outdated) and now i reach the broker image.
Thank you again and have a nice one, ruio
Awesome! Have a great time. 👋
Hello, i tried many times to connect to a local broker (127.0.0.1) (docker image eclipse-mosquitto) without success (mqtt-stresser container). With another broker in my local network (ip adress) it's working flawlessly. I tried to debug without success.
Here some tries (i verified with mosquitto_pub that the broker is up)
Working with mosquitto_pub:
Sorry if I forgot something.
Thank you, ruio
Ps: i tried to run the binaries without success
Ps2: I tried to make without success