Comments (6)
If your server is behind a firewall, you cannot bind a socket to the external address.
There are two possible options.
- Bind MQTT socket to the internal address. Like this:
- Add a record binding your server's domain to the internal address in /etc/hosts, and use domain name in mqtt.server.uri.
See more details here: https://qa.h-mdm.com/1714/
from hmdm-server.
Hi @h-mdm,
We tried both the solutions out there, but adding the internal address as our domain name would possibly be the same thing as binding to the internal address.
We tried sending push notifications to all our devices from the admin panel, but none of them seem to be received on the other end unfortunately. The device configuration gets loaded, and the manually added apps get installed, but after that passing updates/adding new applications/sending push notifications don't work.
By any chance, do we need to make any additional setup for them on server/android side? (just in case if we are missing out on something)
from hmdm-server.
Make sure you see in logs that Headwind MDM is bound to port 31000. You can also check the MQTT traffic by tcpdump.
from hmdm-server.
The port does seem to get bind on port 31000 for MQTT as per the startup logs (for the domain name too).
We get these logs from tcpdump at port 31000 when we send a push message of type "custom message" with title/type "Hello World" and payload "Test Message" and to a specific device that's currently active.
(Also, just in case if this is relevant, please note that we are using the second option mentioned in this comment - #63 (comment))
It does seem to be able to send the required packets from server, really unsure if the firewall or app configuration needs to be changed in any way.
Does the build.gradle
buildConfig in Android need any changes except the primary and secondary URL of our server? The default port number build.gradle
seems to be the same as port 31000, the same that we are using on our server.
At the moment, we are testing the app on a Pixel device running Android 7, and here's how the notification panel looks:
from hmdm-server.
Hi @h-mdm,
Here is some additional information we came across,
Hovering over the installation status of the device under test (a red circle) of a brings up this pop-up -
(We tried adding new applications and versions for the test device)
from hmdm-server.
I see that you're using some technical domain name instead of the IP address. Please use IP address (IPv4) instead, like this:
<Parameter name="mqtt.server.uri" value="172.31.43.138:31000"/>
The local IP address can be found by a command
ip addr show
from hmdm-server.
Related Issues (20)
- Self signed certificated and app error ERROR TAG: trust_anchor HOT 1
- MQTT is not using TLS HOT 1
- failed to deploy WAR file! HOT 1
- failed to deploy WAR file HOT 1
- Security error on ActiveMX, devices can not connect to message broker HOT 5
- Migration to organization HOT 4
- Order Softwares HOT 1
- FireOS support
- Postgre DB default LATIN1 encoding leads to "Failure to deploy war" HOT 1
- Difficulty Setting Up Local Environment for Geolocation Functionality HOT 1
- Qr code not open HOT 1
- Feature request - Accessibility settings
- reporting wrong version HOT 2
- System update on Pixel Tablet does not work HOT 2
- Setting homepage for Edge browser HOT 1
- Log4j Vuln HOT 5
- Login Issue HOT 1
- Cant be reached error when trying to generate QR code HOT 1
- AngularJS vulnarable version
- Provide tags or releases
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hmdm-server.