help setting up a static ip address?
-
Hello!
I've had my raspberry pi setup with retropie for a couple of months now, and I've never been able to work out how to get connected to my wifi. I tried ethernet, which didn't work for whatever reason and I tried wifi but this tutorial is far too confusing for me, if anyone could help me set it up, it would be greatly appritiated.
Pi Model or other hardware: (B, B+, 2 B, 3, X86 PC etc..) B+
Power Supply used: (If using a Pi) N/A
RetroPie Version Used (eg 3.6, 3.8.1, 4.1 - do not write latest): 4.1
Built From: (Pre made SD Image on RetroPie website, Berryboot, or on top of existing OS etc.. - please provide the filename of any image used) retropie-4.1-rpi2_rpi3 (1).img
USB Devices connected: xbox 360 wired controller, apple keyboard
Controller used: xbox 360 wired controller
Error messages received: N/A
Log found in /dev/shm/runcommand.log (if relevant): N/A
Guide used: (Mention if you followed a guide) https://github.com/retropie/retropie-setup/wiki/Wifi#static-ip
File: (File with issue - with FULL path) N/A
Emulator: (Name of emulator - if applicable) N/A
Attachment of config files: (PLEASE USE PASTEBIN.COM FOR LARGE LOGS) N/A
How to replicate the problem: N/AThanks :)
-
What exactly happens when you try to use the wifi menu to connect?
-
My wifi is weird, it has been for a while. I have to manually input the ip address for every device I try to connect, normally ethernet works fine but since it hasn't worked this time I'm pretty lost. Anyway, back to the question, it does connect but the IP is not displayed and I am unable to use the internet (if that makes any sense).
-
Maybe the DHCP on your router doesnt work correctly. Go to your router config page and see if you can enable DHCP there.
-
@coolstuff Which wifi dongle are you using? You are using one, right...?
-
@AlexMurphy Wait.... what? I could have sworn I read that the b+ had built in wifi? Either way though, that doesnt explain why ethernet doesnt work.
-
@coolstuff No wifi until The Pi3 I'm afraid! type
ifconfig
in the terminal, do you see eth0 listed? Post what it says here. -
If you're NOT using a Pi 3, then you should also download the Retropie image for the Pi 1.
-
Try
sudo dhclient -r
Followed by,
sudo dhclient
Or do: sudo dhclient -r wlan0, sudo dhclient wlan0
This (should) renew the dhcp lease and assign one of your PIs to a new IP. -
Ok so... I found out from the friend I got my pi from that it is in fact a pi 3 model B so it DOES have onboard wifi.
@willieaames said in help setting up a static ip address?:
Try
sudo dhclient -r
Followed by,
sudo dhclient
Or do: sudo dhclient -r wlan0, sudo dhclient wlan0
This (should) renew the dhcp lease and assign one of your PIs to a new IP.I tried this, but it didn't seem to help
@AlexMurphy said in help setting up a static ip address?:
@coolstuff No wifi until The Pi3 I'm afraid! type
ifconfig
in the terminal, do you see eth0 listed? Post what it says here.I see eth0 listed, It doesnt have anything like an IP there... I dont know how to copy and paste from the pi and paste it here, so I took a picture:
-
-
btw I've updated the wiki after testing it myself and getting it working.
https://github.com/RetroPie/RetroPie-Setup/wiki/Wifi#static-ip
-
Try
sudo dhclient -r
Followed by,
sudo dhclient
Or do: sudo dhclient -r wlan0, sudo dhclient wlan0
This guide can be useful if you want to renew dhcp and assign your pls to new IP -
I just told my DHCP server to assign the same IP address to the Pi's MAC address.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.