After some initial problems, I managed to get Jmdns up and running, which is discovering my Raspberry Pi connected to my network quite nicely. I'm using the example from this page.
However, I'm not really understanding the getPort()
function. I assumed it would return the port that my Pi is on, which is 80 (according to the settings), but instead, it's returning a value of 9.
The IP address is correct, and so is the name, but the port doesn't seem right. Have I misunderstood?
If so, how can jmdns return the correct port number from my pi?
Any help would be appreciated. Thanks.