sheldonrush
Posts: 4
Joined: Sat Apr 20, 2013 6:10 am

Tether problem

Tue Jun 25, 2013 4:41 pm

hi all,
I have three devices,
1. Pi
2. Android Phone
3. laptop.

I wish I can "SSH" to Pi from my laptop due to NO display here.
First I use my android phone connected to Pi via USB tether
it worked and browser web .
Second, I open the wifi hot spot of android phone, let my laptop can use internet.
it worked too.
Third, I got trouble here, it cannot "SSH" to Pi from my laptop.

how can i solve this problem, anyone have suggestions?
:oops:
BRs,
Sheldon

User avatar
Davespice
Forum Moderator
Forum Moderator
Posts: 1665
Joined: Fri Oct 14, 2011 8:06 pm
Location: The Netherlands
Contact: Twitter

Re: Tether problem

Thu Jun 27, 2013 3:40 pm

Hi there!

So you're trying to do SSH from laptop > over wifi to the phone > from the phone down the USB cable to the Pi?
Is that right? That will never work as far as I know. A device connected to the wifi hotspot cannot communicate with a device connected to the phone by USB, they're using completely different protocols. Correct me if I am wrong anyone?

To get this to work you need to make the Pi also join the Wifi hotspot provided by the Android phone. Then the laptop and the Pi will both be on the same Wifi network and should be able to talk to each other directly.
You can get a little wifi dongle like this one which will do the job.

I can see you may have a problem with getting onto the Pi to configure the Wifi settings though, that could be an issue. It would certainly help a lot if you could borrow a TV from someone just to get that bit done :?

Does your laptop have an Ethernet port? Like the one on the Pi? Because you could just get an Ethernet cable and directly connect them together. I presume you’re using Windows on the laptop? You can share the wireless link, from the laptop to the Android phone, with the Pi over Ethernet. Check out this video; http://www.youtube.com/watch?v=8z3V8LJIy8g

sheldonrush
Posts: 4
Joined: Sat Apr 20, 2013 6:10 am

Re: Tether problem

Fri Jun 28, 2013 9:25 am

hi Davespice,
Thanks for your reply.
I will by a WIFI USB receiver and try to set up this wifi configure on Pi.

BRs,
Sheldon

User avatar
allfox
Posts: 452
Joined: Sat Jun 22, 2013 1:36 pm
Location: Guang Dong, China

Re: Tether problem

Fri Jul 05, 2013 2:04 pm

I think android share her internet connection using NAT on USB, so inside the NAT, you can connect to outside(your pi is able to access internet), but outside the NAT, you cant connect to the inside(your computer cant access your pi).

I have an iPhone to SSH to pi with wifi. My network structure is:
1 Connect the the pi with the wired internet.
2 Give the pi an USB wireless adapter and let it work as a hotspot.
3 Everthing else connect to pi for internet access.(iPhone, PC, Nintendo 3DS......)

In this structure, everthing is in the same subnet, they all is inside the NAT, so they could access each other. And pi acting like a gateway, which is protecting my small network by not allowing incoming connection.

Return to “Troubleshooting”