I set my RPi to have a fixed IP.

First Scenario: After connecting my RPi to my WiFi I opened Terminal on my mac, type ssh [email protected] and I log in with password raspberry. It workes.

Second Scenario: I create a Personal Hotspot using my iPhone. I connect my RPi to that Personal Hotspot. I connect my Mac to that Personal Hotspot. I opened Terminal on my mac, type ssh [email protected] and

After a while, the terminal shows

ssh: connect to host port 22: Operation timed out
  • 3
    This is not a Pi question but an iPhone issue.
    – Milliways
    Commented Feb 26, 2019 at 22:51
  • I really need help, and maybe other people will have the same issue. Apple doesn't care about Raspberry Pi trying to use their iPhone hotspot. Commented Feb 27, 2019 at 16:00

1 Answer 1


It is possible that the IP address of the Raspberry Pi is not What does running 'hostname -I' show on the Raspberry Pi?

Edit to add: The local subnet created by the personal hotspot likely is not Let the Raspberry Pi get its address via DHCP from the hotspot instead of a fixed address.

  • The static ip address is without any doubt. It works on the WiFi (whatever WiFi is meant).
    – Ingo
    Commented Feb 27, 2019 at 0:50
  • | . pi@raspberrypi:~ $ hostname -I" . | | . "" . | . My Raspberry Pi definitely has the IP that I fixed to be. I cannot let the DHCP give a ramdom IP to my Raspberry pi. I have some ESP8266 that talks to my RPi via MQTT, so my Raspberry Pi needs to have a static IP address. Commented Feb 27, 2019 at 15:54
  • One possible way is if your router has the capability to act as a wireless bridge. It connects to the iphone hotspot and the RPi and Mac remain connected to the routers WLAN. Another option is if the iPhone hotspot internal network can be changed to the but AFAIK, there is no such option in the settings. A third option is to get a wireless USB adapter for your RPi. This connects to the iPhone hotspot while the on board RPi wifi connects to your home router.
    – rprr
    Commented Feb 27, 2019 at 18:11

Not the answer you're looking for? Browse other questions tagged or ask your own question.