Skip to content

Instantly share code, notes, and snippets.

@antronic
Last active August 22, 2024 18:21
Show Gist options
  • Save antronic/157e047cdefa98b3150195c2eacb56b8 to your computer and use it in GitHub Desktop.
Save antronic/157e047cdefa98b3150195c2eacb56b8 to your computer and use it in GitHub Desktop.
iPhone USB Tethering to RPi

iPhone Tethering to Raspberry Pi

Instruction

On RPi

  • sudo apt-get install usbmuxd
  • connect iPhone

On iPhone

  • Trust

On RPi

  • Then install a branch of this ... (I'm not sure, is it require?)
  • sudo apt-get install gvfs ipheth-utils libimobiledevice-utils gvfs-backends gvfs-bin gvfs-fuse ifuse -y
  • Then check your iPhone connection
  • ifconfig -s
  • You would see the eth1 for your iPhone (If case eth1 doesn't existing at the first time)
    • If you have eth1 at the first time before you plug an iPhone
    • You need to check which Iface shown after you plugged an iPhone

Set RPi dhch network

  • dhclient -v eth1
  • add following command in /etc/network/interfaces
allow-hotplug eth1
iface eth1 inet dhcp
  • sudo /etc/init.d/networking restart

OR Share internet connection to eth0 using wifi-to-eth-route.sh by changing wlan0 to eth1 wifi-to-eth-route.sh

Purpose

Due to iPhone wireless hotspot using the 2.4Ghz signal which easies to interfere from other same frequency radio signal.

In my dormitory, we have many 2.4 Ghz signals that affect my wifi sharing stability. =w=


PS. If I do wrong grammars, please tell me to fix na~ 'w'

@JiangXL
Copy link

JiangXL commented Jun 19, 2020

Just install usbmuxd ipheth-utils libimobiledevice-utils work on my iPhone and rpi4. Without DHCP setting, RPI is still able to connect hotspot in automatic.

@bigh73521
Copy link

Hi just found this. I’m a newb and want to use iPhone 6 hotspot to stream video to several devices. I just got a rpi 4. I need help with computer speak.

@KeramxD
Copy link

KeramxD commented Apr 2, 2021

Hello,
I did it with wifi-to-eth-route.sh.
On my Raspberry Pi:
hostname -I
192.168.2.1 169.254.191.254 172.20.10.2

Can I set up local static IP somehow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment