1

I've set up a local network in my home using Mac as a WiFi hotspot. I've connected a Ubuntu laptop and an Android device to this network. The set-up works fine, but when I try to ping my Android device from my Ubuntu laptop, the ICMP request times out most of the time. Sometimes, the ping is successful but most of the time, it's not.

Is there a restriction that a Mac can't proxy ICMP requests through it? When the destination (Android device) is not reachable, the ARP table in my Ubuntu laptop shows incomplete MAC address of Android device:

    evinish@68DK8R1:/$ arp
Address                  HWtype  HWaddress           Flags Mask            Iface
192.168.2.1              ether   ea:06:88:cd:47:64   C                     wlan0
192.168.2.4                      (incomplete)                              wlan0

Sometimes the host becomes reachable on it's own and the ARP table becomes:

    evinish@68DK8R1:/$ arp
Address                  HWtype  HWaddress           Flags Mask            Iface
192.168.2.1              ether   ea:06:88:cd:47:64   C                     wlan0
192.168.2.4              ether   d0:51:62:a2:7b:35   C                     wlan0

What could be the reason for that? Please help me!

8
  • What is your actual goal of pining your android device? Just for the sake of pinging it?
    – Nelson
    Feb 14, 2015 at 9:28
  • I'm running a file server on my phone. Apparently, I can't get my network up and running! Feb 14, 2015 at 11:11
  • You don't want a hotspot you want an ad hoc network - 2 different things.
    – Tetsujin
    Feb 14, 2015 at 19:38
  • Okay, let me sum up like this: LAN cable from my broadband service provider connects to my macbook. Now, I've created a wireless bridge in my laptop for Internet sharing to my Ubuntu laptop and Android device. If I run a local file server in my MAC, it can serve files to my newly created wireless bridged network. So, this is a ad-hoc network too where my MAC provides local IP addresses from it's own DHCP pool (192.168.xx.xx range). If I run the same server in Ubuntu, I can't access any files from my Android device because, for some reason, Ubuntu is unable to ping Android (no L3 connection)! Feb 15, 2015 at 5:52
  • I am trying to get adb over network working and facing the same issue.
    – takrishna
    Nov 24, 2015 at 10:46

0

You must log in to answer this question.

Browse other questions tagged .