USB-Wifi and static IP for use with WebIDE

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
rt54321
 
Posts: 1
Joined: Fri Dec 06, 2013 8:15 pm

USB-Wifi and static IP for use with WebIDE

Post by rt54321 »

Greetings all!

I'm running Raspbian on my raspberry pi:

--> I got the USB-Wifi installed, and it works with no problems

--> I have the WebIDE running, and I can access it with no problems

Is there a way to get a static IP on the pi WITH the wifi-usb? This would make accessing WebIDE much easier. Right now, with the Pi running DHCP, I have to log into my router to see what IP address the Pi actually is, so that I can access the WebIDE in my browser (not a huge problem, but a static IP would make things easier).

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: USB-Wifi and static IP for use with WebIDE

Post by adafruit_support_mike »

It's certainly possible. Off the top of my head, I think the incantation in your /etc/network/interfaces file should be:

Code: Select all

auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
    wpa-ssid "your network name"
    wpa-psk "your password"
    address 192.168.0.100
    gateway 192.168.0.1
    netmask 255.255.255.0
    dns-nameservers 8.8.8.8
You'll need to edit the values to fit your network of course. The 'gateway' parameter needs to be your router's IP address.

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”