Score:-1

How to configure .yaml wifi ap mode for minecraft server?

us flag

I setup 21.04 arm64 server and installed minecraft bedrock edition 1.17.11.1 server. It's on a pi4/8.

I can access wifi with the 50-cloud-init.yaml. I installed all updates and have the server autostart at boot and its running.

I've been thinkering with the wifi trying to get it to broadcast an id to log into it (about 30 videos and hundreds of pages) no luck. I've rewritten .yaml up the wazoo for 2 days now.

I don't want multiple devices routers wifi extenders, just a wifi connection into the pi with access to the server from tablets. A portable minecraft server my kid can operate.

Any help on setting up the .yaml?

50-cloud-init.yaml that works:

[
network:
    ethernets:
        eth0:
                dhcp4: true
                Match:
                       driver: bla bla bla.
                Optional: true
                Set-name: eth0
    version: 2
    Wifis:
        wlan0
            optional: true
            access-points:
                Mywifi:
                    Password: morethan8digits
            dhcp4: true.
]

This works to connect to my local network for internet access to run updates.

I need to change the wifis: wlan0 to an access point so as stated above it becomes a stand alone minecraft server that a child can access from a tablet, or ap mode.

Noah Broyles avatar
ua flag
Please post your yaml. How can anyone help you if they don't how what they're dealing with?
Mine avatar
us flag
How to post code?
David avatar
cn flag
Also edit the question as it stands its an unreadable long sentence.
chili555 avatar
cn flag
AP stands for access point, like a router, for example. It is used to connect a computer to the internet. I doubt that that is what you want here. Also, I think you want a static IP address for this or any server. Welcome to Ask Ubuntu.
Mine avatar
us flag
I want to turn the wifi that gets internet into a wifi access point without internet.
Mine avatar
us flag
Ubuntu 21.04 arm64 server on a pi4/8 with minecraft bedrock server. No additional equipment or wires just a power cord. Now connect a tablet through the pi's onboard wifi wifi and play minecraft with friends. Can you help? no then please no comments .
Score:0
us flag

The configuration required to offer your wifi as an AP is:

wifis:
  wlan0:
    mode: ap

Then include your access-point information as before (name and password).

You need to have the network-manager package installed in order to use AP mode, as documented at https://netplan.io/reference/#properties-for-device-type-wifis%3A. It is not installed by default on Ubuntu Server images.

You will also almost certainly need to configure a static IP for this interface, as there will be no DHCP server running on this network.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.