RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Static WIFI Ip address?

    Scheduled Pinned Locked Moved Help and Support
    rpi3bwifiwifi configip address
    7 Posts 4 Posters 5.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • hansolo77H
      hansolo77
      last edited by

      I've been going back and forth with different builds of my system, and it seems that the IP address of my PI3 has changed. I was having the darndest time trying to connect through SFTP and Putty to it before I discovered it had changed. I can't find anywhere through the basic setup scripts to assign a permanent static IP address. Is this just not possible through WIFI, or is there some other "secret" way by editing a file manually?

      Who's Scruffy Looking?

      cyperghostC 1 Reply Last reply Reply Quote 0
      • cyperghostC
        cyperghost @hansolo77
        last edited by cyperghost

        @hansolo77 You can check the IP adress always under ES-menu>Show IP
        Just for help in fixing thing which are no problems.

        AFAIK there is no way to set static IP adress for RetroPie out of the box.
        So we just do a bit of editing some files... eh?

        sudo nano /etc/network/interfaces

        # Ethernet
        auto eth0
        allow-hotplug eth0
        iface eth0 inet static
        address 192.168.1.2
        netmask 255.255.255.0
        gateway 192.168.1.1
        dns-nameservers 192.168.1.1
        

        Exchange Ethernet with WIFI adapter please!

        But there are other ways :)
        Change your hostname via raspi-config and name your builds like you want :)
        Use your router and set a fix IP for a given MAC adress.

        IMHO the hostname is the finest way instead of putty 192.168.1.2you write putty supermario - I prefer kitty rather then putty

        1 Reply Last reply Reply Quote 2
        • obsidianspiderO
          obsidianspider
          last edited by

          If your router allows it, just set a static IP by MAC address. That's what I've done with my Pis.

          📷 @obsidianspider

          1 Reply Last reply Reply Quote 1
          • hansolo77H
            hansolo77
            last edited by

            Cool, thanks guys, at least you gave me some things to try.

            Who's Scruffy Looking?

            1 Reply Last reply Reply Quote 1
            • neobiumN
              neobium
              last edited by neobium

              I have been wanting to do this as well. I'm not a CLI expert, and have never tried setting up network interfaces before. I just do a little ssh and git, normally.

              I first tried the config here: https://github.com/retropie/retropie-setup/wiki/Wifi#static-ip

              Then I tried cyperghost's.

              Using cyperghost's, I can get the machine to come up with the IP addr I set (checked by using F4 to go to the CLI), but when I try to ssh or sftp in over wifi, it just times out.

              What might be the issue?

              Thanks!

              Get lamp. Eat food. Kill troll.

              cyperghostC 1 Reply Last reply Reply Quote 0
              • hansolo77H
                hansolo77
                last edited by

                I decided to go with changing the host name by using RetroPie's "raspconf" script off the ES main menu. In there is an option to change the hostname from "RetroPi" to something else. I called one "SegaPi" (for the mini Genesis hub) and "NESPI" (for the NES build). Then all I had to do was edit the entry in my SFTP program I was using to connect to the hostname rather than the IP address. Piece of cake that way.

                Who's Scruffy Looking?

                1 Reply Last reply Reply Quote 1
                • cyperghostC
                  cyperghost @neobium
                  last edited by cyperghost

                  @neobium Please use the @+name-sign or click on reply so the user you might want to talk is mentioned. If the WIFI IP is the one you've setted in the config and you can't connect to the Pie via WIFI then your security key (=WLAN Password, WPA passphrase.... ) might be wrong. Please check this first.

                  To varify use CLI and use ping command
                  ping your router first
                  ping 192.168.1.1
                  or via router hostname
                  ping myrouter.ip
                  ctrl+c stops ping command!

                  or you can try wget command to download some files
                  wget http://www.retropie.org.uk/
                  you will get index.html from retropie

                  Or are you behind a company proxy and want to play some games while in work? ;)
                  Or is your subnet mask the right one? Is your router setted to only pass trusted devices?

                  Are you able to optain a connection via DHCP? if yes then use the method @hansolo77 and myself explained. Change the hostname with raspi-config and you can use any IP you want .

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  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.