cancel
Showing results for 
Search instead for 
Did you mean: 

Raspberry pi internet connection

FIXED
Anne3014
Hooked
Posts: 5
Fixes: 1
Registered: ‎15-09-2015

Raspberry pi internet connection

My Windows PC connects to the internet via an ethernet cable with no problems but using the same cable with my Raspberry Pi, I cannot connect. The network icon on the desktop appears to show a working connection but if I try to open a browser window, nothing happens.  I've also tried to connect via  the official Raspberry Pi wifi dongle with similar results.  Any suggestions?

5 REPLIES 5
VileReynard
Hero
Posts: 12,616
Thanks: 582
Fixes: 20
Registered: ‎01-09-2007

Re: Raspberry pi internet connection

What is your wiring layout for the Pi - is it wired directly into the back of your router, or is the wiring more complicated?

"In The Beginning Was The Word, And The Word Was Aardvark."

HairyMcbiker
All Star
Posts: 6,792
Thanks: 266
Fixes: 21
Registered: ‎16-02-2009

Re: Raspberry pi internet connection

On the pi, open a terminal window and type in the following
ifconfig
ping google.co.uk


Then give us the results here, you only need the ip address & gateway settings from ifconfig and whether the ping is successful or fails.
Anne3014
Hooked
Posts: 5
Fixes: 1
Registered: ‎15-09-2015

Re: Raspberry pi internet connection

Hi 

Thanks for the answer.  I read on another forum that sometimes reinstalling Raspbian could cure matters.  It did - I can now connect by ethernet.  However I still tried the commands you suggested and he result of Ifconfig was: 

eth0 Link encap:Ethernet HWaddr b8:27:eb:a8:bf:6f
inet addr:192.168.1.7 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a8f7:1bcc:ae59:4766/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:30 errors:0 dropped:0 overruns:0 frame:0
TX packets:59 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3079 (3.0 KiB) TX bytes:9531 (9.3 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:200 errors:0 dropped:0 overruns:0 frame:0
TX packets:200 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:16656 (16.2 KiB) TX bytes:16656 (16.2 KiB)

 

And to the ping - 

pi@raspberrypi:~ $ ping google.co.uk
ping: icmp open socket: Operation not permitted

I'm now trying to connect with a wifi dongle (so far unsuccessfully) as I need the ethernet cable for my Windows pc.  

Thanks again

Anonymous
Not applicable

Re: Raspberry pi internet connection

For your ping try entering:

sudo chmod u+s /bin/ping

Then try again with ping.

 

Anne3014
Hooked
Posts: 5
Fixes: 1
Registered: ‎15-09-2015

Re: Raspberry pi internet connection

Fix

Problem solved - edited /etc/network/interfaces as described at  http://raspberrypihq.com/how-to-add-wifi-to-the-raspberry-pi/  and wifi dongle now working.