Answer the question
In order to leave comments, you need to log in
Can't connect to my Raspberry Pi via ssh. The question is why?
The Raspberry Pi is connected to the network in the following way:
PRi -usb- Samsung(Android usb mobile AP) -wifi- Router Asus
ifconfig usb0
//интерфейс есть
ifdown -a
//сбросил все соединения
ifup usb0
//поднял только интересующий меня
//пингую гугловские сервера
ping 8.8.8.8
//все нормально
//сеть есть
192.168.1.4 and 192.168.1.153 - immediately disappear, this is a laptop and a hospital;
192.168.1.150 is my downstairs neighbor;
It turns out that 192.168.1.41 is my RPi
I swear on Android usb AP
php -S 192.168.1.4:8080
//выхлоп по соединениям будет капать сюда
//подключаю к RPi к единственному свободному usb порту клавиатуру
wget http://192.168.1.4:8080
I catch the exhaust - I determine that 192.168.1.41 belongs to the RPi
iface usb0 inet dhcp
the old file had a different look (which is defoult)
when I raised the usb0 interface to PRI, the standard output method was information on the received IP
//код неудалось вывости с помощью ifup usb0 > file
//думал далее гитом взять
Answer the question
In order to leave comments, you need to log in
We enter ifconfig -a and check the ip addresses on the network interfaces.
Most likely "Android usb mobile AP" implements NAT technology, and hides the ip of devices behind it in its internal subnet. In order for a device on your local network to be directly accessible, that android must work in bridge mode, or routing to that subnet is configured.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question