How to use USB connection for Internet from a PC to a cellphone?












3















I have Ubuntu 16.04 on my PC.



Is there a way to create a wired connection between my PC and smartphone so the smartphone can be connected to internet via the PC?










share|improve this question

























  • Possible related question android.stackexchange.com/questions/103506/…

    – user68186
    Jan 26 '18 at 20:15
















3















I have Ubuntu 16.04 on my PC.



Is there a way to create a wired connection between my PC and smartphone so the smartphone can be connected to internet via the PC?










share|improve this question

























  • Possible related question android.stackexchange.com/questions/103506/…

    – user68186
    Jan 26 '18 at 20:15














3












3








3








I have Ubuntu 16.04 on my PC.



Is there a way to create a wired connection between my PC and smartphone so the smartphone can be connected to internet via the PC?










share|improve this question
















I have Ubuntu 16.04 on my PC.



Is there a way to create a wired connection between my PC and smartphone so the smartphone can be connected to internet via the PC?







16.04 smartphone






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 26 '18 at 21:32









user68186

15.6k84667




15.6k84667










asked Jan 26 '18 at 15:56









Georgios PapadopoulosGeorgios Papadopoulos

183




183













  • Possible related question android.stackexchange.com/questions/103506/…

    – user68186
    Jan 26 '18 at 20:15



















  • Possible related question android.stackexchange.com/questions/103506/…

    – user68186
    Jan 26 '18 at 20:15

















Possible related question android.stackexchange.com/questions/103506/…

– user68186
Jan 26 '18 at 20:15





Possible related question android.stackexchange.com/questions/103506/…

– user68186
Jan 26 '18 at 20:15










1 Answer
1






active

oldest

votes


















1














The answer may not work on your phone. The following worked on my phone



My phone was Google Nexus 6P running factory standard Android 8.x Oreo



This process is called USB reverse tethering. Not all phones support it. Some Android phones have to be rooted for this to work. There are some guides in the links below.




  1. https://forum.xda-developers.com/showthread.php?t=2287494


  2. https://www.howtogeek.com/214375/how-to-reverse-tether-an-android-smartphone-or-tablet-to-your-pc/



    You may need an app on your phone. I didn't need it.



  3. https://medium.com/genymobile/gnirehtet-reverse-tethering-android-2afacdbdaec7



My phone is not rooted. This is what I did:



First, find the MAC address of the USB port you will use



Connect your phone to your PC using an USB cable.




  1. Turn USB tethering on in your phone. This will use your phone's
    mobile data to connect the PC to the Internet. This is not what we
    want, but this will give us the device address we will use later.

  2. Open the Network Manager edit window from the Network icon on the
    top right corner.

  3. Highlight the USB connection. It may be called Ethernet Connection
    1
    or Ethernet Connection 2.

  4. Click on the Edit button and go to the Ethernet tab.

  5. Copy the information in the Device field:
    enter image description here


  6. Press cancel button to get out of the Network Edit menu. Do not
    close the Network Connections window yet.


  7. In your phone turn off USB tethering.


Second, setup a new network connection





  1. Click Add in network connections:



    enter image description here



  2. Give the new connection a new name if you want.


  3. Go to the Ethernet tab and paste the device information you copied.


  4. Go to the IPv4 Settings tab and select Shared to other computers:
    enter image description here


  5. Save and close network connection windows.



Third, Test with your phone




  1. In your phone, turn off mobile data, and WiFi while connected by
    USB to the PC.

  2. Surf the web and use other Internet connected apps.


It looks like the USB port gets a random Ethernet MAC address every time it is plugged in. If this is the case, you will have to first find the MAC address and then edit the saved settings every time you want to do this.



Hope this helps






share|improve this answer


























  • I'll try it and let you know.

    – Georgios Papadopoulos
    Jan 27 '18 at 14:32











  • Unfortunately,it didn't work.

    – Georgios Papadopoulos
    Jan 27 '18 at 21:14











  • not working!. I tried with the no rooted phone option

    – Nwawel A Iroume
    Jan 7 at 12:53











  • @NwawelAIroume Most phone manufacturers disable this capability. I have added the details of the phone I tried in the answer.

    – user68186
    Jan 7 at 15:21











  • Iam using lg g5. I checked the MAC Is not changing everytime i plug usb. So it is supposed to work. How could i enable the feature in case the manufacturer disabled it?

    – Nwawel A Iroume
    Jan 10 at 14:51













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2faskubuntu.com%2fquestions%2f1000098%2fhow-to-use-usb-connection-for-internet-from-a-pc-to-a-cellphone%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














The answer may not work on your phone. The following worked on my phone



My phone was Google Nexus 6P running factory standard Android 8.x Oreo



This process is called USB reverse tethering. Not all phones support it. Some Android phones have to be rooted for this to work. There are some guides in the links below.




  1. https://forum.xda-developers.com/showthread.php?t=2287494


  2. https://www.howtogeek.com/214375/how-to-reverse-tether-an-android-smartphone-or-tablet-to-your-pc/



    You may need an app on your phone. I didn't need it.



  3. https://medium.com/genymobile/gnirehtet-reverse-tethering-android-2afacdbdaec7



My phone is not rooted. This is what I did:



First, find the MAC address of the USB port you will use



Connect your phone to your PC using an USB cable.




  1. Turn USB tethering on in your phone. This will use your phone's
    mobile data to connect the PC to the Internet. This is not what we
    want, but this will give us the device address we will use later.

  2. Open the Network Manager edit window from the Network icon on the
    top right corner.

  3. Highlight the USB connection. It may be called Ethernet Connection
    1
    or Ethernet Connection 2.

  4. Click on the Edit button and go to the Ethernet tab.

  5. Copy the information in the Device field:
    enter image description here


  6. Press cancel button to get out of the Network Edit menu. Do not
    close the Network Connections window yet.


  7. In your phone turn off USB tethering.


Second, setup a new network connection





  1. Click Add in network connections:



    enter image description here



  2. Give the new connection a new name if you want.


  3. Go to the Ethernet tab and paste the device information you copied.


  4. Go to the IPv4 Settings tab and select Shared to other computers:
    enter image description here


  5. Save and close network connection windows.



Third, Test with your phone




  1. In your phone, turn off mobile data, and WiFi while connected by
    USB to the PC.

  2. Surf the web and use other Internet connected apps.


It looks like the USB port gets a random Ethernet MAC address every time it is plugged in. If this is the case, you will have to first find the MAC address and then edit the saved settings every time you want to do this.



Hope this helps






share|improve this answer


























  • I'll try it and let you know.

    – Georgios Papadopoulos
    Jan 27 '18 at 14:32











  • Unfortunately,it didn't work.

    – Georgios Papadopoulos
    Jan 27 '18 at 21:14











  • not working!. I tried with the no rooted phone option

    – Nwawel A Iroume
    Jan 7 at 12:53











  • @NwawelAIroume Most phone manufacturers disable this capability. I have added the details of the phone I tried in the answer.

    – user68186
    Jan 7 at 15:21











  • Iam using lg g5. I checked the MAC Is not changing everytime i plug usb. So it is supposed to work. How could i enable the feature in case the manufacturer disabled it?

    – Nwawel A Iroume
    Jan 10 at 14:51


















1














The answer may not work on your phone. The following worked on my phone



My phone was Google Nexus 6P running factory standard Android 8.x Oreo



This process is called USB reverse tethering. Not all phones support it. Some Android phones have to be rooted for this to work. There are some guides in the links below.




  1. https://forum.xda-developers.com/showthread.php?t=2287494


  2. https://www.howtogeek.com/214375/how-to-reverse-tether-an-android-smartphone-or-tablet-to-your-pc/



    You may need an app on your phone. I didn't need it.



  3. https://medium.com/genymobile/gnirehtet-reverse-tethering-android-2afacdbdaec7



My phone is not rooted. This is what I did:



First, find the MAC address of the USB port you will use



Connect your phone to your PC using an USB cable.




  1. Turn USB tethering on in your phone. This will use your phone's
    mobile data to connect the PC to the Internet. This is not what we
    want, but this will give us the device address we will use later.

  2. Open the Network Manager edit window from the Network icon on the
    top right corner.

  3. Highlight the USB connection. It may be called Ethernet Connection
    1
    or Ethernet Connection 2.

  4. Click on the Edit button and go to the Ethernet tab.

  5. Copy the information in the Device field:
    enter image description here


  6. Press cancel button to get out of the Network Edit menu. Do not
    close the Network Connections window yet.


  7. In your phone turn off USB tethering.


Second, setup a new network connection





  1. Click Add in network connections:



    enter image description here



  2. Give the new connection a new name if you want.


  3. Go to the Ethernet tab and paste the device information you copied.


  4. Go to the IPv4 Settings tab and select Shared to other computers:
    enter image description here


  5. Save and close network connection windows.



Third, Test with your phone




  1. In your phone, turn off mobile data, and WiFi while connected by
    USB to the PC.

  2. Surf the web and use other Internet connected apps.


It looks like the USB port gets a random Ethernet MAC address every time it is plugged in. If this is the case, you will have to first find the MAC address and then edit the saved settings every time you want to do this.



Hope this helps






share|improve this answer


























  • I'll try it and let you know.

    – Georgios Papadopoulos
    Jan 27 '18 at 14:32











  • Unfortunately,it didn't work.

    – Georgios Papadopoulos
    Jan 27 '18 at 21:14











  • not working!. I tried with the no rooted phone option

    – Nwawel A Iroume
    Jan 7 at 12:53











  • @NwawelAIroume Most phone manufacturers disable this capability. I have added the details of the phone I tried in the answer.

    – user68186
    Jan 7 at 15:21











  • Iam using lg g5. I checked the MAC Is not changing everytime i plug usb. So it is supposed to work. How could i enable the feature in case the manufacturer disabled it?

    – Nwawel A Iroume
    Jan 10 at 14:51
















1












1








1







The answer may not work on your phone. The following worked on my phone



My phone was Google Nexus 6P running factory standard Android 8.x Oreo



This process is called USB reverse tethering. Not all phones support it. Some Android phones have to be rooted for this to work. There are some guides in the links below.




  1. https://forum.xda-developers.com/showthread.php?t=2287494


  2. https://www.howtogeek.com/214375/how-to-reverse-tether-an-android-smartphone-or-tablet-to-your-pc/



    You may need an app on your phone. I didn't need it.



  3. https://medium.com/genymobile/gnirehtet-reverse-tethering-android-2afacdbdaec7



My phone is not rooted. This is what I did:



First, find the MAC address of the USB port you will use



Connect your phone to your PC using an USB cable.




  1. Turn USB tethering on in your phone. This will use your phone's
    mobile data to connect the PC to the Internet. This is not what we
    want, but this will give us the device address we will use later.

  2. Open the Network Manager edit window from the Network icon on the
    top right corner.

  3. Highlight the USB connection. It may be called Ethernet Connection
    1
    or Ethernet Connection 2.

  4. Click on the Edit button and go to the Ethernet tab.

  5. Copy the information in the Device field:
    enter image description here


  6. Press cancel button to get out of the Network Edit menu. Do not
    close the Network Connections window yet.


  7. In your phone turn off USB tethering.


Second, setup a new network connection





  1. Click Add in network connections:



    enter image description here



  2. Give the new connection a new name if you want.


  3. Go to the Ethernet tab and paste the device information you copied.


  4. Go to the IPv4 Settings tab and select Shared to other computers:
    enter image description here


  5. Save and close network connection windows.



Third, Test with your phone




  1. In your phone, turn off mobile data, and WiFi while connected by
    USB to the PC.

  2. Surf the web and use other Internet connected apps.


It looks like the USB port gets a random Ethernet MAC address every time it is plugged in. If this is the case, you will have to first find the MAC address and then edit the saved settings every time you want to do this.



Hope this helps






share|improve this answer















The answer may not work on your phone. The following worked on my phone



My phone was Google Nexus 6P running factory standard Android 8.x Oreo



This process is called USB reverse tethering. Not all phones support it. Some Android phones have to be rooted for this to work. There are some guides in the links below.




  1. https://forum.xda-developers.com/showthread.php?t=2287494


  2. https://www.howtogeek.com/214375/how-to-reverse-tether-an-android-smartphone-or-tablet-to-your-pc/



    You may need an app on your phone. I didn't need it.



  3. https://medium.com/genymobile/gnirehtet-reverse-tethering-android-2afacdbdaec7



My phone is not rooted. This is what I did:



First, find the MAC address of the USB port you will use



Connect your phone to your PC using an USB cable.




  1. Turn USB tethering on in your phone. This will use your phone's
    mobile data to connect the PC to the Internet. This is not what we
    want, but this will give us the device address we will use later.

  2. Open the Network Manager edit window from the Network icon on the
    top right corner.

  3. Highlight the USB connection. It may be called Ethernet Connection
    1
    or Ethernet Connection 2.

  4. Click on the Edit button and go to the Ethernet tab.

  5. Copy the information in the Device field:
    enter image description here


  6. Press cancel button to get out of the Network Edit menu. Do not
    close the Network Connections window yet.


  7. In your phone turn off USB tethering.


Second, setup a new network connection





  1. Click Add in network connections:



    enter image description here



  2. Give the new connection a new name if you want.


  3. Go to the Ethernet tab and paste the device information you copied.


  4. Go to the IPv4 Settings tab and select Shared to other computers:
    enter image description here


  5. Save and close network connection windows.



Third, Test with your phone




  1. In your phone, turn off mobile data, and WiFi while connected by
    USB to the PC.

  2. Surf the web and use other Internet connected apps.


It looks like the USB port gets a random Ethernet MAC address every time it is plugged in. If this is the case, you will have to first find the MAC address and then edit the saved settings every time you want to do this.



Hope this helps







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 7 at 15:19

























answered Jan 26 '18 at 21:21









user68186user68186

15.6k84667




15.6k84667













  • I'll try it and let you know.

    – Georgios Papadopoulos
    Jan 27 '18 at 14:32











  • Unfortunately,it didn't work.

    – Georgios Papadopoulos
    Jan 27 '18 at 21:14











  • not working!. I tried with the no rooted phone option

    – Nwawel A Iroume
    Jan 7 at 12:53











  • @NwawelAIroume Most phone manufacturers disable this capability. I have added the details of the phone I tried in the answer.

    – user68186
    Jan 7 at 15:21











  • Iam using lg g5. I checked the MAC Is not changing everytime i plug usb. So it is supposed to work. How could i enable the feature in case the manufacturer disabled it?

    – Nwawel A Iroume
    Jan 10 at 14:51





















  • I'll try it and let you know.

    – Georgios Papadopoulos
    Jan 27 '18 at 14:32











  • Unfortunately,it didn't work.

    – Georgios Papadopoulos
    Jan 27 '18 at 21:14











  • not working!. I tried with the no rooted phone option

    – Nwawel A Iroume
    Jan 7 at 12:53











  • @NwawelAIroume Most phone manufacturers disable this capability. I have added the details of the phone I tried in the answer.

    – user68186
    Jan 7 at 15:21











  • Iam using lg g5. I checked the MAC Is not changing everytime i plug usb. So it is supposed to work. How could i enable the feature in case the manufacturer disabled it?

    – Nwawel A Iroume
    Jan 10 at 14:51



















I'll try it and let you know.

– Georgios Papadopoulos
Jan 27 '18 at 14:32





I'll try it and let you know.

– Georgios Papadopoulos
Jan 27 '18 at 14:32













Unfortunately,it didn't work.

– Georgios Papadopoulos
Jan 27 '18 at 21:14





Unfortunately,it didn't work.

– Georgios Papadopoulos
Jan 27 '18 at 21:14













not working!. I tried with the no rooted phone option

– Nwawel A Iroume
Jan 7 at 12:53





not working!. I tried with the no rooted phone option

– Nwawel A Iroume
Jan 7 at 12:53













@NwawelAIroume Most phone manufacturers disable this capability. I have added the details of the phone I tried in the answer.

– user68186
Jan 7 at 15:21





@NwawelAIroume Most phone manufacturers disable this capability. I have added the details of the phone I tried in the answer.

– user68186
Jan 7 at 15:21













Iam using lg g5. I checked the MAC Is not changing everytime i plug usb. So it is supposed to work. How could i enable the feature in case the manufacturer disabled it?

– Nwawel A Iroume
Jan 10 at 14:51







Iam using lg g5. I checked the MAC Is not changing everytime i plug usb. So it is supposed to work. How could i enable the feature in case the manufacturer disabled it?

– Nwawel A Iroume
Jan 10 at 14:51




















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • 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%2faskubuntu.com%2fquestions%2f1000098%2fhow-to-use-usb-connection-for-internet-from-a-pc-to-a-cellphone%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

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei