Git Product home page Git Product logo

Comments (6)

h-mdm avatar h-mdm commented on July 21, 2024

If your server is behind a firewall, you cannot bind a socket to the external address.

There are two possible options.

  1. Bind MQTT socket to the internal address. Like this:
  2. 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.

MHShetty-AA1-1 avatar MHShetty-AA1-1 commented on July 21, 2024

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.

h-mdm avatar h-mdm commented on July 21, 2024

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.

MHShetty-AA1-1 avatar MHShetty-AA1-1 commented on July 21, 2024

The port does seem to get bind on port 31000 for MQTT as per the startup logs (for the domain name too).

image

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.

image

(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.

image

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:

image

from hmdm-server.

MHShetty-AA1-1 avatar MHShetty-AA1-1 commented on July 21, 2024

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)

image

from hmdm-server.

h-mdm avatar h-mdm commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.