Connecting Raspberry Pi to Internet Using Ethernet Cable

0 votes

I am not finding this question in SF history, which was a surprise, so I'll go ahead and ask it.

I am working on an IoT Raspberry Pi project with Windows 10 and need to connect it to the internet via an Ethernet/USB adapter. The adapter itself is made by Belkin. Using this, I can see an ip of 169.stuff get generated for my Pi, which is a private ip. I can deploy code to that from my connected box, however other devices are not able to reach it, and it is not able to make connections out to any servers.

I'm wondering if anybody knows how to bridge the connection.

I am attempting to use the new Azure IoT Hub and the SDK with this in case that makes any differences as that is not a simple rest interface and I believe is some form of socket connection.

Please help !

Sep 21, 2018 in IoT (Internet of Things) by Matt
• 2,270 points
1,373 views

1 answer to this question.

0 votes

I do this by creating a DHCP server on my laptop and connecting the Pi directly to it. 

I followed these instructions to get it working:

  1. Download DHCP Server for Windows. It is a 100kB download.
  2. Go to the IPv4 properties page of the Ethernet adapter and set a fixed IP address, say 192.168.2.1
  3. Run the DHCP Server Wizard (downloaded above)
  4. Select the Ethernet adapter from the list shown
  5. Save the configuration file and start up the DHCP Server
  6. Click the 'Continue as tray app' button in the server control panel.
  7. Boot up the Raspberry Pi
  8. A popup notification shows the IP address assigned by the DHCP server to the Raspberry Pi.
  9. Use a SSH client, like PuTTy, to connect to the IP address shown

Hope this works!

answered Sep 21, 2018 by anonymous2
• 4,240 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer

Connecting GSM Module to Raspberry Pi 2

Hey, just use any 'supported' USB-to-Serial adapter ...READ MORE

answered Nov 22, 2018 in IoT (Internet of Things) by DataKing99
• 8,250 points
1,056 views
0 votes
1 answer

Connecting Android-things via Ethernet cable to adb

Yes, you have to get your laptop ...READ MORE

answered Feb 27, 2019 in IoT (Internet of Things) by Upasana
• 8,620 points
1,082 views
0 votes
1 answer

Connect Android Things based Raspberry Pi 3 to wifi network for the first time!

Hey, I think its alright!  Your Raspberry Pi ...READ MORE

answered Jul 19, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,198 views
0 votes
1 answer
0 votes
1 answer

Displaying Table Schema using Power BI with Azure IoT Hub

Answering your first question, Event Hubs are ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,350 views
0 votes
1 answer

How to use the data I receive from Azure IoT Hub?

The payload you receive will be a ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by DataKing99
• 8,250 points
1,820 views
0 votes
1 answer

Azure - What service to use for Arduino data (iot)

That's because the two services do completely ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by anonymous2
• 4,240 points
1,078 views
0 votes
1 answer

How to connect Raspberry Pi and lighting the LED?

You might want to try instead to ...READ MORE

answered Jul 23, 2018 in IoT (Internet of Things) by anonymous2
• 4,240 points
687 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP