ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Ubuntu Ethernet before WiFi

    IT Discussion
    5
    24
    2.0k
    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.
    • hobbit666H
      hobbit666 @scottalanmiller
      last edited by

      @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...

      1. Disable Wifi on boot completely
      2. make sure Ethernet is good on boot
      3. 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?

      scottalanmillerS 1 Reply Last reply Reply Quote 0
      • 1
        1337 @hobbit666
        last edited by 1337

        @hobbit666 said in Ubuntu Ethernet before WiFi:

        Question,
        Is there a way of getting Ubuntu to delay start the WiFi until fully booted?
        But keep the ethernet as is.

        I have a laptop I'm setting up, but the software I'm installing binds the port to the first nic it sees (minecraft) which always seems to be the WiFi. I want it running on the ethernet but then allow WiFi to connect so I can remote admin it over WiFi (ethernet is on different network)

        I would look at differently.

        The problem is not wifi, it's the fact that the software binds to the wrong NIC.
        To me it's very odd that it selects wifi to bind to, since normally LAN would be the first NIC.

        So I would look at:

        • changing the NIC the software binds to (configuration files?)
        • changing NIC names
        • changing NIC enumeration order
        1 1 Reply Last reply Reply Quote 2
        • 1
          1337 @1337
          last edited by 1337

          @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.

          hobbit666H 2 Replies Last reply Reply Quote 2
          • hobbit666H
            hobbit666 @1337
            last edited by

            @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.

            scottalanmillerS 2 Replies Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @hobbit666
              last edited by

              @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.

              Such an easy thing to do, too.

              1 1 Reply Last reply Reply Quote 0
              • 1
                1337 @scottalanmiller
                last edited by 1337

                @scottalanmiller said in Ubuntu Ethernet before WiFi:

                @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.

                Such an easy thing to do, too.

                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.

                The normal thing for a server application is to bind to all or one specific IP address that the server have and to a specific port. Not a specific NIC.

                As you may or may not know this comes from the low level socket api that all OSes use but originated from unix (BSD). The function that tells a socket what ip & port to use is called bind.

                Higher level functions in programming languages such as java, python or whatever are usually just wrappers for the socket api.

                From what I can see there seems to be options in the configuration files for Minecraft server to set which ports it should bind to as well. I don't have any experience with Minecraft, that info is just from a quick search.

                Normal procedure if you want more control over a server and which IP addresses it actually replies on, is to have it bind to all IPs then employ access control with the OS firewall.

                Default behavior for the bind function is to actually bind to all IPs - if you don't specify an IP. So I would expect Minecraft server to actually bind to all IPs if none are specified. But the OS firewall may not be open to accept traffic on all interfaces.

                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.

                hobbit666H 2 Replies Last reply Reply Quote 1
                • hobbit666H
                  hobbit666 @1337
                  last edited by

                  @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,

                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                  • hobbit666H
                    hobbit666 @1337
                    last edited by

                    @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
                    
                    1 Reply Last reply Reply Quote 0
                    • hobbit666H
                      hobbit666 @1337
                      last edited by

                      @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.

                      1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller @hobbit666
                        last edited by

                        @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...

                        1. Disable Wifi on boot completely
                        2. make sure Ethernet is good on boot
                        3. 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.

                        1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller @hobbit666
                          last edited by

                          @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.

                          1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @hobbit666
                            last edited by

                            @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.

                            1 Reply Last reply Reply Quote 0
                            • hobbit666H
                              hobbit666
                              last edited by

                              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?

                              travisdh1T scottalanmillerS 2 Replies Last reply Reply Quote 0
                              • travisdh1T
                                travisdh1 @hobbit666
                                last edited by

                                @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

                                hobbit666H 1 Reply Last reply Reply Quote 0
                                • hobbit666H
                                  hobbit666 @travisdh1
                                  last edited by hobbit666

                                  @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

                                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller @hobbit666
                                    last edited by

                                    @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.)

                                    1 Reply Last reply Reply Quote 0
                                    • scottalanmillerS
                                      scottalanmiller @hobbit666
                                      last edited by

                                      @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 work

                                      Terminal should just be using OpenSSH.

                                      hobbit666H 1 Reply Last reply Reply Quote 0
                                      • hobbit666H
                                        hobbit666 @scottalanmiller
                                        last edited by

                                        @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

                                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                                        • scottalanmillerS
                                          scottalanmiller @hobbit666
                                          last edited by

                                          @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.

                                          JaredBuschJ 1 2 Replies Last reply Reply Quote 0
                                          • JaredBuschJ
                                            JaredBusch @scottalanmiller
                                            last edited by

                                            @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.

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