-   Linux - Wireless Networking (
-   -   Trying to make wlan0 accept incoming connections - Raspbian (

DoubleDiode 03-19-2013 04:43 AM

Trying to make wlan0 accept incoming connections - Raspbian
Hi everyone,

Using my new Raspberry Pi Model A running Raspbian to post this, so proof I have a working outgoing connection. My problem is that I want to be able to SSH to it so I can run it headless. I cannot even ping it from other computers on my LAN. Everything I have read about connecting the Pi reads that once it is connected to the internet, then it can be pinged. SSH is enabled by default in Raspbian and I have checked it is running.

In my /etc/network/interfaces file it is set-up to use a static IP, but changing to dhcp does not help. I can ping other computers on my LAN with success, but he Pi is always unreachable. On my router, wireless isolation is OFF.

iptables is wide open!

iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Any ideas?


hamlindsza 03-21-2013 12:48 PM

hmmm...seems strange...could you post the outputs of ifconfig & route could give us some ideas.

also when you try to ping the pi from another computer, check if the pi is responding the arp request eg. on a windows machine post the output of arp -a

DoubleDiode 03-21-2013 03:59 PM

Thanks for your reply.

On the Pi (

pi@raspberrypi ~ $ ifconfig
lo Link encap:Local Loopback
inet addr: Mask:
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr 80:1f:02:82:ad:27
inet addr: Bcast: Mask:
RX packets:328 errors:0 dropped:341 overruns:0 frame:0
TX packets:422 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:218563 (213.4 KiB) TX bytes:86768 (84.7 KiB)

pi@raspberrypi ~ $ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface UG 0 0 0 wlan0 U 0 0 0 wlan0


From Win7 laptop (

arp -a

Interface: --- 0xa
Internet Address Physical Address Type 00-24-b2-bb-a1-88 dynamic ff-ff-ff-ff-ff-ff static 01-00-5e-00-00-02 static 01-00-5e-00-00-fb static 01-00-5e-00-00-fc static 01-00-5e-7f-ff-ef static 01-00-5e-7f-ff-fa static ff-ff-ff-ff-ff-ff static


Thanks again for looking at this for me


jlinkels 03-21-2013 07:39 PM

How did you connect to wireless anyway? The A doesn't come with a wifi adapter.

You could start TCPDump on the command line and see what happens if a packet arrives on the interface.


DoubleDiode 03-22-2013 09:43 PM

Neither model of Pi comes with wifi, and only the model B has ethernet. I am using a USB dongle as reported by lsusb:

Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]

Repeated pings and attempts to ssh from various computers on my LAN had proved unsuccessful, giving host not found errors. I was going to try tcpdump as you suggested, but it is not installed by default on Raspbian. Now for the bit I do not understand at all, installing tcpdump fixed the issue. I can ssh at last. I have no idea why that made the difference!

Thanks again.

jlinkels 03-22-2013 09:47 PM

Usually I am apt to accept credits for a good advice, but in this case it would really be unjustfied. :D

TCPdump talks on a low-level to the network adapter, maybe that has something to do with it.

Just out of interest, what for project have you intended for your Raspberry?


DoubleDiode 03-23-2013 09:02 PM

I was interested in electronic circuits long before building my first computer from a kit in 1981. My second computer in 1982 was an Acorn Atom, which I really liked as it had a connector at the back to control lights and monitor switches etc. Over 30 years later I can do that sort of thing again with my Pi. My first project for it was to control my SLR camera. A bit of programming and some other electronics has resulted in this:

I have a few more timelapses planned!

jlinkels 03-23-2013 11:27 PM

oh, I see. You are just a prehistoric fossile like I am myself. My first program ran with punch cards on an IBM mainframe perhaps as powerful as the Raspberry or even less. I am building an energy analyzer plus datalogger from my Pi. I acquire the data using a USB-DUX. But I purchased the B version with wired ethernet. :D

Good luck.

All times are GMT -5. The time now is 06:53 AM.