MQTT and Chirpstack

Hello, In the past I’ve successfully set up MQTT from TTN to a python program running on my raspberry pi.

To do this I needed an application name, a password, a URL and some port numbers like this:

mqttc.username_pw_set("app_name","ttn-account-v2.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
mqttc.connect("eu.thethings.network",1883,10)

I’m now trying to do the same thing from my RAK2287 running Chirpstack to a python program running on a Raspberry Pi (within the same LAN).

I know the application name, but where do I get the password from? (For the TTN version I got the password from the TTN webpage for my application, but I can’t see the same thing in Chirpstack).

I’m guessing I should replace eu.thethings.network with the IP address of my RAK2287?

But what port numbers should I use, please?

Thank you for any help you can offer.