1

I am using a Raspberry Pi 3 Model B for an intern project and I am having trouble connecting it to my laptop. I have never worked with a Raspberry Pi or any other microcontrollers before, so all of this is new to me. I have done countless research and have watched numerous youtube videos on both the raspberry pi and Arduino boards. I have attempted to connect my Pi to my laptop using an Ethernet cord, but the company that I am interning for will not grant me access to there network settings, in order for me to share the network with the Pi and display the pi on my laptop screen. I was wondering if there was another way to display the Pi on my laptop. I have bought an SD card with Noobs 2.1 pre-downloaded on it, so I don't have to download it myself. Do I even have to be connected to the network to display the Raspberry Pi on my laptop or can I just use the HDMI cord and connect the two somehow and begin programming. I would appreciate any comments, answers, or criticism. Thank You.

  • 1
    If you are unable to access the network settings on the laptop then you are probably going to be out of luck trying to do it that way until you get raspbian setup properly. I'd suggest you hook the pi up with a keyboard, mouse, and monitor and work on it directly until you can setup the networking properly. – Charemer Jun 27 '18 at 12:43
  • Why don't you just host a WiFi on your Laptop? – kwasmich Jun 27 '18 at 12:52
  • Is it your personal laptop or is it a corporate work laptop? What are you allowed to do with the laptop? – joan Jun 27 '18 at 12:55
  • It's a corporate work laptop. – Vincent M. Jun 27 '18 at 14:10
  • 1
    You could set up your Pi as its own WiFi access point and access it via WiFi from your laptop while hooked into the corporate net via ethernet cable. IT might not like having a foreign WiFi AP within the building, however. – OyaMist Jun 27 '18 at 14:42
2

To configure your Raspberry Pi 3 as its own WiFi Access point, see https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md

To perform this setup, you will need full, cabled Ethernet access during the setup process. After the Pi is set up as a WiFi AP, you no longer need the Ethernet umbilical cable. A Raspberry Pi configured this way will NOT have access to the internet once the physical cable is unplugged. However, you can access anything on the Raspberry Pi via WiFi to the Pi WiFi access point.

Also, note that the documentation is confusing and should be read as follows:

interface=wlan0      # Use the require wireless interface - usually wlan0
dhcp-range=192.168.4.2,192.168.4.20,255.255.255.0,24h

I.e., you just need this:

interface=wlan0     
dhcp-range=192.168.4.2,192.168.4.20,255.255.255.0,24h

NOTE: When configuring a Raspberry Pi for wifi, do consider legal restrictions, especially when interacting with computers or networks that are not yours. For example, if your laptop is work related, your IT department may forbid USB drives (which essentially are computers) and would likely also forbid use of your Pi in the workplace just as they forbid access to certain websites from their laptop.

  • 1
    Just post here and we'll work together on the answer. Our conversations will help others. – OyaMist Jun 27 '18 at 15:55
  • 1
    And maybe the company also does not allow to connect to unknown wifi networks? – Ingo Jun 28 '18 at 0:49
0

There is another possible solution, which does not require you to setup your Raspberry Pi as WiFi access point by using a wired Ethernet connection.

It has other drawbacks, but I use it from time to time, when I quickly want to check in on my Raspberry Pi and I don’t have a monitor at hand.

Here is what you need to do:

  1. You connect your Raspberry Pi via Ethernet cable to your computer.
  2. When no static IP addresses are assigned on the interfaces and no DHCP server is running, typically the interfaces on both sides will self-assign a link-local IP-address in the range of 169.254.1.0 to 169.254.254.255 (advice: reboot your machine, if you were connected with your computer to a LAN via Ethernet before, as your interface may already have an IP-address from that connection)
  3. Now run a network scanning tool on your computer where you scan all addresses from 169.254.1.0 to 169.254.254.255, which will then report to you the IP-address of your Raspberry Pi.
    For that purpose, as an example, on a Linux machine you can use arp-scan in a terminal (replace eth0 with the name of your respective Ethernet interface):
    sudo arp-scan –interface=eth0 169.254.0.0/16
    On Windows you can use a network scanning tool or command line tools, as described in this SE question.
  4. As you now know the IP address of your Raspberry Pi you can ssh into it (on Windows e.g. using the program putty) or use VNC. (Note that you need to enable both ssh/vnc beforehand on your Raspberry Pi)

Drawbacks:

  • You have to repeat this procedure everytime you initially connect your Ethernet cable to the Raspberry Pi, as the link-local IP address will be randomly selected
  • Getting a link-local IP address on your computer might not work depending on the networking settings applied in your company computer.
  • Scanning the ip-range takes some time. On Linux using arp-scan it takes a few minutes. On Windows I have no empirical values.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.