Home » DEVELOPERS » Tutorials » Change the IP address of the robot

 Developers>Tutoriels>Change the IP adress of the robot

 The default IP address is : 192.168.42.1
  • Open the interfaces file with nano editer :

$ sudo nano /etc/network/interfaces

  • Edit the line of the IP address :
iface wlan0 inet static
 address 192.168.42.1
 netmask 255.255.255.0
  • If you want the address 192.168.42.2 for example, the configuration file is:
iface wlan0 inet static
 address 192.168.42.2
 netmask 255.255.255.0
  • Next, open the rc.local file :
$ sudo nano /etc/rc.local
  • Modifier la ligne suivante avec votre adresse IP :
ifconfig wlan0 192.168.42.1
With the previous example, it becomes:
ifconfig wlan0 192.168.42.2
  • Save the change and restart the Raspberry Pi board :
$ sudo reboot
Here, the IP address is changed, be sure to sign in with this new address.