How do I share an internet connection through USB?












6















I have two Linux boxes. One is running KNOPPIX and the other Ubuntu. I have only one wifi dongle between them, and only one of them has an Ethernet port. They both have free USB ports however. I need the box with the dongle to share the connection through a male-to-male USB cable.



I know it is possible to do a similar setup with a desktop and certain portable devices, but I need it between two normal computers. I cannot buy any additional hardware.










share|improve this question

























  • USB doesn't work that way and can't be used to network 2 computers directly. Your best bet is to find an USB/Ethernet adapter, or another Wi-Fi dongle.

    – Renan
    Aug 29 '13 at 17:04











  • I am already doing this on a window System.Sharing Internet of PC via USB to a my mobile. now m looking for a way to do the same on my linux box.

    – user77668
    Jul 16 '14 at 4:05











  • @Gagan Your smartphone can act as both a host and device (USB OTG), your laptop doesn't. It's easier to insert an Ethernet cable in between.

    – Lekensteyn
    Jul 16 '14 at 8:10
















6















I have two Linux boxes. One is running KNOPPIX and the other Ubuntu. I have only one wifi dongle between them, and only one of them has an Ethernet port. They both have free USB ports however. I need the box with the dongle to share the connection through a male-to-male USB cable.



I know it is possible to do a similar setup with a desktop and certain portable devices, but I need it between two normal computers. I cannot buy any additional hardware.










share|improve this question

























  • USB doesn't work that way and can't be used to network 2 computers directly. Your best bet is to find an USB/Ethernet adapter, or another Wi-Fi dongle.

    – Renan
    Aug 29 '13 at 17:04











  • I am already doing this on a window System.Sharing Internet of PC via USB to a my mobile. now m looking for a way to do the same on my linux box.

    – user77668
    Jul 16 '14 at 4:05











  • @Gagan Your smartphone can act as both a host and device (USB OTG), your laptop doesn't. It's easier to insert an Ethernet cable in between.

    – Lekensteyn
    Jul 16 '14 at 8:10














6












6








6


1






I have two Linux boxes. One is running KNOPPIX and the other Ubuntu. I have only one wifi dongle between them, and only one of them has an Ethernet port. They both have free USB ports however. I need the box with the dongle to share the connection through a male-to-male USB cable.



I know it is possible to do a similar setup with a desktop and certain portable devices, but I need it between two normal computers. I cannot buy any additional hardware.










share|improve this question
















I have two Linux boxes. One is running KNOPPIX and the other Ubuntu. I have only one wifi dongle between them, and only one of them has an Ethernet port. They both have free USB ports however. I need the box with the dongle to share the connection through a male-to-male USB cable.



I know it is possible to do a similar setup with a desktop and certain portable devices, but I need it between two normal computers. I cannot buy any additional hardware.







ubuntu debian usb ethernet






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 28 '13 at 22:13









Joseph R.

28.1k374114




28.1k374114










asked Aug 28 '13 at 22:09









Skylar IttnerSkylar Ittner

223310




223310













  • USB doesn't work that way and can't be used to network 2 computers directly. Your best bet is to find an USB/Ethernet adapter, or another Wi-Fi dongle.

    – Renan
    Aug 29 '13 at 17:04











  • I am already doing this on a window System.Sharing Internet of PC via USB to a my mobile. now m looking for a way to do the same on my linux box.

    – user77668
    Jul 16 '14 at 4:05











  • @Gagan Your smartphone can act as both a host and device (USB OTG), your laptop doesn't. It's easier to insert an Ethernet cable in between.

    – Lekensteyn
    Jul 16 '14 at 8:10



















  • USB doesn't work that way and can't be used to network 2 computers directly. Your best bet is to find an USB/Ethernet adapter, or another Wi-Fi dongle.

    – Renan
    Aug 29 '13 at 17:04











  • I am already doing this on a window System.Sharing Internet of PC via USB to a my mobile. now m looking for a way to do the same on my linux box.

    – user77668
    Jul 16 '14 at 4:05











  • @Gagan Your smartphone can act as both a host and device (USB OTG), your laptop doesn't. It's easier to insert an Ethernet cable in between.

    – Lekensteyn
    Jul 16 '14 at 8:10

















USB doesn't work that way and can't be used to network 2 computers directly. Your best bet is to find an USB/Ethernet adapter, or another Wi-Fi dongle.

– Renan
Aug 29 '13 at 17:04





USB doesn't work that way and can't be used to network 2 computers directly. Your best bet is to find an USB/Ethernet adapter, or another Wi-Fi dongle.

– Renan
Aug 29 '13 at 17:04













I am already doing this on a window System.Sharing Internet of PC via USB to a my mobile. now m looking for a way to do the same on my linux box.

– user77668
Jul 16 '14 at 4:05





I am already doing this on a window System.Sharing Internet of PC via USB to a my mobile. now m looking for a way to do the same on my linux box.

– user77668
Jul 16 '14 at 4:05













@Gagan Your smartphone can act as both a host and device (USB OTG), your laptop doesn't. It's easier to insert an Ethernet cable in between.

– Lekensteyn
Jul 16 '14 at 8:10





@Gagan Your smartphone can act as both a host and device (USB OTG), your laptop doesn't. It's easier to insert an Ethernet cable in between.

– Lekensteyn
Jul 16 '14 at 8:10










3 Answers
3






active

oldest

votes


















3














Without any deeper knowledge, I would suggest looking at the Linux USB Project, section USB Host-to-Host Cables, and possibly Easy Transfer Cable (although that seems to be mainly a Windows thingy). In any case you are likely to need additional hardware, because the cable probably is not "just wires".






share|improve this answer































    3














    This is impossible, unfortunately. All USB connections must be between a host device (e.g. a computer) and a normal USB device (mouse, etc.). Desktops and laptops are always hosts and therefore cannot connect to each other. Some newer mobile devices implement the USB On-The-Go standard, and can switch between being hosts and normal devices, but this won't be the case for your computers.






    share|improve this answer
























    • I was afraid of that. Thanks for your time though!

      – Skylar Ittner
      Sep 1 '13 at 1:42



















    1














    There is no such thing as a USB male-to-male cable, or at least, if some idiot made one it would explicitly violate the USB standard. The closest thing to it is something like a laplink cable, which is a USB device in the middle that has two male cables coming out of it. As far as I know, these use proprietary software to communicate with the device and ask it to relay to the other computer. As such, it won't work as a normal network interface in Linux.






    share|improve this answer



















    • 1





      Well, I have a male-to-male cable. It came with a cheap digital camera stick thing, which had a full size USB port to connect to the computer.

      – Skylar Ittner
      Sep 1 '13 at 1:42











    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f88609%2fhow-do-i-share-an-internet-connection-through-usb%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    Without any deeper knowledge, I would suggest looking at the Linux USB Project, section USB Host-to-Host Cables, and possibly Easy Transfer Cable (although that seems to be mainly a Windows thingy). In any case you are likely to need additional hardware, because the cable probably is not "just wires".






    share|improve this answer




























      3














      Without any deeper knowledge, I would suggest looking at the Linux USB Project, section USB Host-to-Host Cables, and possibly Easy Transfer Cable (although that seems to be mainly a Windows thingy). In any case you are likely to need additional hardware, because the cable probably is not "just wires".






      share|improve this answer


























        3












        3








        3







        Without any deeper knowledge, I would suggest looking at the Linux USB Project, section USB Host-to-Host Cables, and possibly Easy Transfer Cable (although that seems to be mainly a Windows thingy). In any case you are likely to need additional hardware, because the cable probably is not "just wires".






        share|improve this answer













        Without any deeper knowledge, I would suggest looking at the Linux USB Project, section USB Host-to-Host Cables, and possibly Easy Transfer Cable (although that seems to be mainly a Windows thingy). In any case you are likely to need additional hardware, because the cable probably is not "just wires".







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 29 '13 at 16:51









        peterphpeterph

        23.4k24457




        23.4k24457

























            3














            This is impossible, unfortunately. All USB connections must be between a host device (e.g. a computer) and a normal USB device (mouse, etc.). Desktops and laptops are always hosts and therefore cannot connect to each other. Some newer mobile devices implement the USB On-The-Go standard, and can switch between being hosts and normal devices, but this won't be the case for your computers.






            share|improve this answer
























            • I was afraid of that. Thanks for your time though!

              – Skylar Ittner
              Sep 1 '13 at 1:42
















            3














            This is impossible, unfortunately. All USB connections must be between a host device (e.g. a computer) and a normal USB device (mouse, etc.). Desktops and laptops are always hosts and therefore cannot connect to each other. Some newer mobile devices implement the USB On-The-Go standard, and can switch between being hosts and normal devices, but this won't be the case for your computers.






            share|improve this answer
























            • I was afraid of that. Thanks for your time though!

              – Skylar Ittner
              Sep 1 '13 at 1:42














            3












            3








            3







            This is impossible, unfortunately. All USB connections must be between a host device (e.g. a computer) and a normal USB device (mouse, etc.). Desktops and laptops are always hosts and therefore cannot connect to each other. Some newer mobile devices implement the USB On-The-Go standard, and can switch between being hosts and normal devices, but this won't be the case for your computers.






            share|improve this answer













            This is impossible, unfortunately. All USB connections must be between a host device (e.g. a computer) and a normal USB device (mouse, etc.). Desktops and laptops are always hosts and therefore cannot connect to each other. Some newer mobile devices implement the USB On-The-Go standard, and can switch between being hosts and normal devices, but this won't be the case for your computers.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Aug 29 '13 at 2:20









            wingedsubmarinerwingedsubmariner

            2,233819




            2,233819













            • I was afraid of that. Thanks for your time though!

              – Skylar Ittner
              Sep 1 '13 at 1:42



















            • I was afraid of that. Thanks for your time though!

              – Skylar Ittner
              Sep 1 '13 at 1:42

















            I was afraid of that. Thanks for your time though!

            – Skylar Ittner
            Sep 1 '13 at 1:42





            I was afraid of that. Thanks for your time though!

            – Skylar Ittner
            Sep 1 '13 at 1:42











            1














            There is no such thing as a USB male-to-male cable, or at least, if some idiot made one it would explicitly violate the USB standard. The closest thing to it is something like a laplink cable, which is a USB device in the middle that has two male cables coming out of it. As far as I know, these use proprietary software to communicate with the device and ask it to relay to the other computer. As such, it won't work as a normal network interface in Linux.






            share|improve this answer



















            • 1





              Well, I have a male-to-male cable. It came with a cheap digital camera stick thing, which had a full size USB port to connect to the computer.

              – Skylar Ittner
              Sep 1 '13 at 1:42
















            1














            There is no such thing as a USB male-to-male cable, or at least, if some idiot made one it would explicitly violate the USB standard. The closest thing to it is something like a laplink cable, which is a USB device in the middle that has two male cables coming out of it. As far as I know, these use proprietary software to communicate with the device and ask it to relay to the other computer. As such, it won't work as a normal network interface in Linux.






            share|improve this answer



















            • 1





              Well, I have a male-to-male cable. It came with a cheap digital camera stick thing, which had a full size USB port to connect to the computer.

              – Skylar Ittner
              Sep 1 '13 at 1:42














            1












            1








            1







            There is no such thing as a USB male-to-male cable, or at least, if some idiot made one it would explicitly violate the USB standard. The closest thing to it is something like a laplink cable, which is a USB device in the middle that has two male cables coming out of it. As far as I know, these use proprietary software to communicate with the device and ask it to relay to the other computer. As such, it won't work as a normal network interface in Linux.






            share|improve this answer













            There is no such thing as a USB male-to-male cable, or at least, if some idiot made one it would explicitly violate the USB standard. The closest thing to it is something like a laplink cable, which is a USB device in the middle that has two male cables coming out of it. As far as I know, these use proprietary software to communicate with the device and ask it to relay to the other computer. As such, it won't work as a normal network interface in Linux.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Aug 29 '13 at 2:33









            psusipsusi

            13.5k22439




            13.5k22439








            • 1





              Well, I have a male-to-male cable. It came with a cheap digital camera stick thing, which had a full size USB port to connect to the computer.

              – Skylar Ittner
              Sep 1 '13 at 1:42














            • 1





              Well, I have a male-to-male cable. It came with a cheap digital camera stick thing, which had a full size USB port to connect to the computer.

              – Skylar Ittner
              Sep 1 '13 at 1:42








            1




            1





            Well, I have a male-to-male cable. It came with a cheap digital camera stick thing, which had a full size USB port to connect to the computer.

            – Skylar Ittner
            Sep 1 '13 at 1:42





            Well, I have a male-to-male cable. It came with a cheap digital camera stick thing, which had a full size USB port to connect to the computer.

            – Skylar Ittner
            Sep 1 '13 at 1:42


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f88609%2fhow-do-i-share-an-internet-connection-through-usb%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to make a Squid Proxy server?

            Is this a new Fibonacci Identity?

            19世紀