Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@JiangXL 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

This comment has been minimized.

Copy link

@bigh73521 bigh73521 commented Jun 23, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.