tadejkkk
Posts: 19
Joined: Sun Jun 29, 2014 10:52 am

Internet access on RPi

Tue Jul 15, 2014 11:46 am

Hi. I'm using my RPi via SHH. I'm on a laptop with wifi internet connection. In wireless connection network i've set to allow network sharing. Because of that i get my static IPv4 adress on local area network 192.168.137.1. So i changed the ip of my RPi on 192.168.137.9 and when i try to ping it from my laptop i get a lot of traffic, but when i try to ping my laptop from RPi i get nothing. I also can't access the internet on RPi. Anyone know the problem?

User avatar
FLYFISH TECHNOLOGIES
Posts: 1750
Joined: Thu Oct 03, 2013 7:48 am
Location: Ljubljana, Slovenia
Contact: Website

Re: Internet access on RPi

Tue Jul 15, 2014 12:00 pm

Hi,

Provide output of sudo ifconfig command executed on RasPi.


Best wishes, Ivan Zilic.
Running out of GPIO pins and/or need to read analog values?
Solution: http://www.flyfish-tech.com/FF32

tadejkkk
Posts: 19
Joined: Sun Jun 29, 2014 10:52 am

Re: Internet access on RPi

Tue Jul 15, 2014 12:56 pm

Code: Select all

sudo ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:1a:ce:c0
          inet addr:192.168.137.9  Bcast:192.168.137.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7640 errors:0 dropped:0 overruns:0 frame:0
          TX packets:320 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:429344 (419.2 KiB)  TX bytes:44511 (43.4 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1344 (1.3 KiB)  TX bytes:1344 (1.3 KiB)

User avatar
FLYFISH TECHNOLOGIES
Posts: 1750
Joined: Thu Oct 03, 2013 7:48 am
Location: Ljubljana, Slovenia
Contact: Website

Re: Internet access on RPi

Tue Jul 15, 2014 1:03 pm

Hi,
tadejkkk wrote:

Code: Select all

sudo ifconfig
This seems normal... Next idea: check firewall settings on the laptop.


Best wishes, Ivan Zilic.
Running out of GPIO pins and/or need to read analog values?
Solution: http://www.flyfish-tech.com/FF32

tadejkkk
Posts: 19
Joined: Sun Jun 29, 2014 10:52 am

Re: Internet access on RPi

Tue Jul 15, 2014 1:31 pm

If i turn off the firewall i can ping my laptop from RPi, but the internet connection still doesn't work.

User avatar
FLYFISH TECHNOLOGIES
Posts: 1750
Joined: Thu Oct 03, 2013 7:48 am
Location: Ljubljana, Slovenia
Contact: Website

Re: Internet access on RPi

Tue Jul 15, 2014 1:47 pm

Hi,
tadejkkk wrote:If i turn off the firewall i can ping my laptop from RPi, but the internet connection still doesn't work.
Make sure that the laptop's IP (192.168.137.x) is defined as a gateway on RasPi.


Best wishes, Ivan Zilic.
Running out of GPIO pins and/or need to read analog values?
Solution: http://www.flyfish-tech.com/FF32

drgeoff
Posts: 10829
Joined: Wed Jan 25, 2012 6:39 pm

Re: Internet access on RPi

Tue Jul 15, 2014 2:07 pm

FLYFISH TECHNOLOGIES wrote:Hi,
tadejkkk wrote:If i turn off the firewall i can ping my laptop from RPi, but the internet connection still doesn't work.
Make sure that the laptop's IP (192.168.137.x) is defined as a gateway on RasPi.


Best wishes, Ivan Zilic.
Probably want to set a DNS server as well :) .
Quis custodiet ipsos custodes?

User avatar
FLYFISH TECHNOLOGIES
Posts: 1750
Joined: Thu Oct 03, 2013 7:48 am
Location: Ljubljana, Slovenia
Contact: Website

Re: Internet access on RPi

Tue Jul 15, 2014 2:29 pm

Hi,
drgeoff wrote:Probably want to set a DNS server as well :) .
We're not there yet... ;-)


Best wishes, Ivan Zilic.
Running out of GPIO pins and/or need to read analog values?
Solution: http://www.flyfish-tech.com/FF32

tadejkkk
Posts: 19
Joined: Sun Jun 29, 2014 10:52 am

Re: Internet access on RPi

Tue Jul 15, 2014 3:21 pm

Yes it works now. Thank you very much for your replies!

Return to “Troubleshooting”