Open the Settings app on the iPhone.
Tap on "Personal hotspot". There must be a SIM card in the iPhone for this.
Activate the switch to turn on the hotspot.
The hotspot network name, which corresponds to the name of the iPhone, and the Wi-Fi password set up are displayed here.