I connected my pi to my laptop (Win7) via this Guide. I'm using Putty for a SSH connection. Now I want to connect my pi to internet (either via the LAN to my Laptop or WIFI), but I can't get any of them to work properly. For the ethernet method I tried all various things found on the web, but nothing worked.
For WIFI: I try to connect to a non secured Network (just for test purposes, later I will connect to a WPA2 secured network), via these commands:
sudo iwlist wlan0 scan
sudo ifconfig wlan0 up
sudo iwconfig wlan0 essid [MY_ESSID]
sudo dhclient -v wlan0
The output is the follwing:
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/wlan0/00:51:25:52:83:8f
Sending on LPF/wlan0/00:51:25:52:83:8f
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
What am I doing wrong or how can I connect my pi to the web? Thanks in advance!
/etc/network/interfaces
and/etc/wpa_supplicant/wpa_supplicant.conf
– Milliways Aug 2 '14 at 12:14