I'm trying to setup my Raspberry Pi3 as a WiFi hotspot. I've used three different sets of instructions after complete reloads and cannot get any of them to work. I can see the RP3 in my list of WiFi networks and can connect. However my tablet (Google Samsung ) does not get an IP assigned.
I don't know anything about the OS and thus don't have any idea on what to try to do to diagnose.
I loaded by Pi3 with the latest version of Raspian. Like with the message above the Pi3 was not assigning an IP.
I noticed tonight that I could connect to the internet via direct connect/cat5 but not WiFi.
Yesterday I was on with WifI but could not get an IP address assigned to me tablet. So i don't know what the issue is. Here is what i have setup.
- Installed hostapd udhcpd
- Configure DHCP (
New line = #DHCPD_ENABLED="no"
sudo ifconfig wlan0 192.168.42.1
Added to the bottom of the file
/etc/network/interfaces. Instructions were if the line "iface wlan0 inet dhcp" is not present, then add these lines to the bottom of the file.
This line was not present in my file so I added:
Was supposed to comment out (#) the following lines in
allow-hotplug wlan0, wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf, and iface default inet manual.
However I only changed the top line since it was the only one in my file (
/etc/default/hostapd line #DAEMON_CONF=""to
sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
Added the following line to the bottom of
Ran the following commands in this order
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE sudo iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
/etc/network/interfacesand added the following line to the bottom of the file:
up iptables-restore < /etc/iptables.ipv4.nat
sudo service hostapd start sudo service udhcpd start
At this point I could see the Wireless network but the Pi3 never assigned an IP to my tablet. This was yesterday when the WiFi appeared to work. Today the WiFi does not appear to be working
Ran this just to finish
sudo update-rc.d hostapd enable sudo update-rc.d udhcpd enable