Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3866

Troubleshooting • Static IP on ubuntu server

$
0
0
I am trying to use an ubuntu server in order to host a minecraft server on my rasberry pi 5, and i followed the directions to setup my static ip.
im trying to edit the netplan /etc/netplan/50-cloud-init.yaml/ in order to use a static IP.

Code:

network:  version: 2  wifis:    wlan0:      optional: true      dhcp4: no      addresses:        - 192.165.0.50/24  # Static IP      routes:        - to: default          via: 192.165.0.1  # Router's IP (Gateway)      nameservers:        addresses:          - 8.8.8.8          - 8.8.4.4      access-points:        "tp-link_26":          auth:            key-management: "psk"          password: "characters im editing out of this post but trust me they work"
instead of routes i originally had a gateway4, but that was deprecated so i replaced it.

when i do sudo netplan apply, i will get this message: (not word for word, as im typing this on a seperate device)
mochatitan@rasberrypi:~$ [ 67.369403] brcmfmac: brcmf_set_channel: set chanspec 0xd026 fail, reason -52
that message appears 3 times total in one bunch.
i want this since i will be using ssh alot and also using it to host servers, and when i want to get the server up i just want to be able to turn on the pi and connect, rather than checking my ip and stuff.

Statistics: Posted by mochatitan — Mon Feb 24, 2025 5:47 am



Viewing all articles
Browse latest Browse all 3866

Trending Articles