Please login or register.

Login with username, password and session length

Author Topic: setting static ip in pi  (Read 2262 times)

bobbyds1

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 55
setting static ip in pi
« on: February 15, 2021, 10:15:03 PM »

How can i assign a static ip address to pi after i am logged in to pi.  and i need to have alexa rediscover my devices when itry tellin it to discover new devices it does not find any of my x10 devices.

Need some assistance.
Logged

bkenobi

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 24
  • Posts: 2082
Re: setting static ip in pi
« Reply #1 on: February 15, 2021, 11:53:49 PM »

There are multiple options to accomplish the same goal. I use a DHCP setting on my router to assign a fixed IP. If you prefer to assign the IP on the RPi itself, you can modify the /etc/dhcpcd.conf file.

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: setting static ip in pi
« Reply #2 on: February 16, 2021, 06:13:27 AM »

Setting up an IP reservation in your router is the prefered method for any device. I had issues with my phone always grabing another devices IP. This way the router only gives out that IP to the device based on its MAC address and will not issue it to anything else if the device fails to or slow to load.
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

bobbyds1

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 55
Re: setting static ip in pi
« Reply #3 on: February 16, 2021, 06:39:55 AM »

Tuicemen is their any way to turn off the wifi on pi and just use an ethernet cable. if so can you please instruct how.

Thank you
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: setting static ip in pi
« Reply #4 on: February 16, 2021, 07:47:33 AM »

Turning off on wifi/ ethernet is done in the pi configuration.
sudo raspi-config
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

bobbyds1

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 55
Re: setting static ip in pi
« Reply #5 on: February 16, 2021, 05:15:03 PM »

when i go into the config file there is no way to turn it off.. right now when i look in my router pi is connected wirelessly under one ip address and wired under another ip address. need to shut off the wifi
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: setting static ip in pi
« Reply #6 on: February 16, 2021, 05:24:19 PM »

 You can always try one of these methods
https://raspberrytips.com/disable-wifi-raspberry-pi/
 >!
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

bobbyds1

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 55
Re: setting static ip in pi
« Reply #7 on: February 16, 2021, 07:34:23 PM »

ok i have disabled the wifi on pi. I can access home genie but I cannot access hu bridge

Need some help Please
Logged
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.