Ubuntu Ethernet before WiFi
-
@Pete-S said in Ubuntu Ethernet before WiFi:
With "port" are we talking about a NIC or tcp/ip port? Sometime people say port but are actually referring to a specific network interface which can cause confusion. So to clarify, port in the text below is tcp/ip port and not network interface.
Sorry my bad, typing to quick and not reading to check.
Yes i mean it can't bind to a specific NIC,
-
@Pete-S said in Ubuntu Ethernet before WiFi:
On linux you can check what service are bound to what ports and IPs with
netstat -tulpn
It will not show if the firewall is open or closed though (I think...) You have to check that as well.From the netstat command
(Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN - tcp6 0 0 :::22 :::* LISTEN - udp 0 0 0.0.0.0:38534 0.0.0.0:* 927/bedrock_server udp 0 0 127.0.0.53:53 0.0.0.0:* - udp 0 0 10.120.99.125:68 0.0.0.0:* - udp 0 0 0.0.0.0:19132 0.0.0.0:* 927/bedrock_server udp6 0 0 :::19133 :::* 927/bedrock_server udp6 0 0 :::44199 :::* 927/bedrock_server
-
@Pete-S said in Ubuntu Ethernet before WiFi:
Inside that there is a setting called
server-ip
.Looks like that server-ip option is only for java edition
Should of said i'm running Bedrock. -
@hobbit666 said in Ubuntu Ethernet before WiFi:
@scottalanmiller said in Ubuntu Ethernet before WiFi:
@hobbit666 said in Ubuntu Ethernet before WiFi:
Or even disable the WiFi during boot and only bring it up after fully boot, or delayed say 5mins after
I've not played with this configuration. But my thought would be maybe do...
- Disable Wifi on boot completely
- make sure Ethernet is good on boot
- Make an "@boot" cronjob with a short delay (1 minute should be fine) and have that enable the wifi
If the cron job enables the WiFi would it still be enabled if I rebooted the machine?
The point of the cron job is that it starts wifi at boot time.
-
@hobbit666 said in Ubuntu Ethernet before WiFi:
@Pete-S said in Ubuntu Ethernet before WiFi:
@Pete-S said in Ubuntu Ethernet before WiFi:
So I would look at:
changing the NIC the software binds to (configuration files?)
A quick search seems to indicate that Minecraft Server have config file called
server.properties
.Inside that there is a setting called
server-ip
.Set that to the static IP of the computer's IP on the LAN and I'm guessing it will bind to your LAN port every time.
Yeah will give that a try.
For some reason you can't "bind" to a specific port. It's been a requested feature with M$ for a while now.Port is a different issue. Would be nice to have but would also cause a lot of end user confusion as it would break certain mechanisms.
-
@hobbit666 said in Ubuntu Ethernet before WiFi:
Yes i mean it can't bind to a specific NIC,
That's a much harder thing to do in the configs because it's crazy hard and constantly variable. If you had that feature, and any hardware changed, it would just stop working and people would be confused.
You CAN also fix this by running it in a VM and controlling things at the VM level.
-
OK silly question slightly off topic.
If i'm setting up SSH keys between my Windows machine and the ubuntu server does my windows username need to be the same as the ubuntu server?
i.e. windows user is hobbit, but ubuntu only has a user minecraft? Do i need to create a user called hobbit on ubuntu?
-
@hobbit666 said in Ubuntu Ethernet before WiFi:
OK silly question slightly off topic.
If i'm setting up SSH keys between my Windows machine and the ubuntu server does my windows username need to be the same as the ubuntu server?
i.e. windows user is hobbit, but ubuntu only has a user minecraft? Do i need to create a user called hobbit on ubuntu?
No, you just need to pass the correct user to the ubuntu server when connecting with ssh/scp. IE
ssh minecraft@ubuntuip
-
@travisdh1 said in Ubuntu Ethernet before WiFi:
No, you just need to pass the correct user to the ubuntu server when connecting with ssh/scp. IE
ssh minecraft@ubuntuip
Thought so, must be doing something wrong still asking for the minecraft password not "SSH Key" password
Edit - Think it's just Terminal in Win11 - Putty seems to work -
@hobbit666 said in Ubuntu Ethernet before WiFi:
If i'm setting up SSH keys between my Windows machine and the ubuntu server does my windows username need to be the same as the ubuntu server?
Nope, no need to match. Are you using the Windows built in SSH system from PowerShell (that's what I do.)
-
@hobbit666 said in Ubuntu Ethernet before WiFi:
@travisdh1 said in Ubuntu Ethernet before WiFi:
No, you just need to pass the correct user to the ubuntu server when connecting with ssh/scp. IE
ssh minecraft@ubuntuip
Thought so, must be doing something wrong still asking for the minecraft password not "SSH Key" password
Edit - Think it's just Terminal in Win11 - Putty seems to workTerminal should just be using OpenSSH.
-
@scottalanmiller said in Ubuntu Ethernet before WiFi:
Terminal should just be using OpenSSH.
This might be the issue. Will have a play after my holidays
-
@hobbit666 said in Ubuntu Ethernet before WiFi:
@scottalanmiller said in Ubuntu Ethernet before WiFi:
Terminal should just be using OpenSSH.
This might be the issue. Will have a play after my holidays
In theory, Window's OpenSSH implementation is completely identical to the one on Linux and BSD. I can't way I've tested much in Windows 11, but on 10, it's definitely identical.
-
@scottalanmiller said in Ubuntu Ethernet before WiFi:
@hobbit666 said in Ubuntu Ethernet before WiFi:
@scottalanmiller said in Ubuntu Ethernet before WiFi:
Terminal should just be using OpenSSH.
This might be the issue. Will have a play after my holidays
In theory, Window's OpenSSH implementation is completely identical to the one on Linux and BSD. I can't way I've tested much in Windows 11, but on 10, it's definitely identical.
I've not had any issues with it.
-
@scottalanmiller said in Ubuntu Ethernet before WiFi:
@hobbit666 said in Ubuntu Ethernet before WiFi:
@scottalanmiller said in Ubuntu Ethernet before WiFi:
Terminal should just be using OpenSSH.
This might be the issue. Will have a play after my holidays
In theory, Window's OpenSSH implementation is completely identical to the one on Linux and BSD. I can't way I've tested much in Windows 11, but on 10, it's definitely identical.
"Completely identical" is a bit of a stretch since it's a fork, so it has additions and changes and might not support everything the main project does. It's likely lagging behind the main project too.
But "works the same" or "practically the same" or "has the same code base"...
Microsoft only has one fork, so windows version shouldn't make any noticeable difference.
https://github.com/PowerShell/openssh-portablePS. In OP's case he has probably hasn't the right key in openssh. OpenSSH and Putty don't share their ssh keys. They are in different folders.