My Rpi needs to connect to an EC2 instance. This works fine when the Pi is connected to internet using ethernet or my home wi-fi, but stops working when connected via an iPhone hotspot. I'm using a static IP (192.168.178.200), configured in dhcpcd.conf, and provided it with some extra DNS domains from google and openDNS.
Using the hotspot, I cannot ping google (timeout), although pinging 18.104.22.168 results in:
From 192.168.178.200 icmp_seq=1 Destination Host Unreachable.
This points towards a DNS issue. However, I have provided it with additional DNS servers via dhcpcd.conf. My /etc/resolv.conf looks like this:
# Generated by resolvconf #Google DNS nameserver 22.214.171.124 #OpenDns Servers nameserver 126.96.36.199 nameserver 188.8.131.52 nameserver 184.108.40.206 nameserver 220.127.116.11 nameserver 18.104.22.168 nameserver 22.214.171.124
I know it's somewhat double (added some lines through resolv.head), but that should not cause issues.
When trying to SSH, using my EC2's public IP (so not even the DNS address) it says "no route to host".
Again, this only happens when connected to the hotspot. Anyone a clue what may cause this?
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000 link/ether b8:27:eb:0a:54:b1 brd ff:ff:ff:ff:ff:ff 3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether b8:27:eb:5f:01:e4 brd ff:ff:ff:ff:ff:ff inet 192.168.178.200/24 brd 192.168.178.255 scope global wlan0 valid_lft forever preferred_lft forever inet6 fe80::2bf6:d22:1559:80a6/64 scope link valid_lft forever preferred_lft forever
And output from
default via 192.168.178.1 dev wlan0 src 192.168.178.200 metric 303 192.168.178.0/24 dev wlan0 proto kernel scope link src 192.168.178.200 metric 303