You can find it in the Spark Master UI settings in the cluster configuration.

Or you can run %sh ifconfig.

Do keep in mind you might want to take a range because this most likely changes everytime you spin up your cluster.