googlecreativelab / coder

A simple way to make web stuff on Raspberry Pi
http://goo.gl/coder
Apache License 2.0
2.42k stars 276 forks source link

Bonjour mobile devices #77

Open Luuii opened 10 years ago

Luuii commented 10 years ago

Bonjour no longer exists on mobile devices and saying this, it means that the IP Address should be knew to work with. The IP Address via ethernet is different in every connection, it changes.

I would like to keep the IP Address in a static mode. How should I do that.

jmstriegel commented 10 years ago

In v0.6, which just launched this week, you can set up a static IP address by editing a file on the sd card. Download the latest version at http://goo.gl/coder

Put your sd card in a mac or pc, and look for the file /coder_settings/reset_files/net_interfaces.txt. Then do the following:

Change this part of the file to look like this:

###
# Set up ethernet to use dhcp
###
#iface eth0 inet dhcp

###
# Or comment the above and uncomment these
# lines for a static IP address 
###
auto eth0
iface eth0 inet static
    address 192.168.1.10
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    gateway 192.168.1.1

(replace the 192.168.* above with your own ip, netmask, gateway, etc.)