josh_B
Posts: 17
Joined: Tue Jan 12, 2016 1:57 pm

Cant connect raspberry pi to a laptop

Tue Oct 04, 2016 6:53 am

i've installed the latest image raspbian . and i wanted to connect it to the laptop ( not the router).

so , i enabled
network and sharing -> my wifi adapter - > properties - > turned on sharing.
connected raspberry pi to the laptop went to network and sharing went to "ethernet." and turned on radio button " obtain ip address automatically " .

now what should i type in the putty to get my raspberry pi connected ?
i tried :
1)ipconfig in cmd ...the ethernet port adrress which was :
ethernet adapter ethernet
autoconfiguration ip4 :169.254.193.83

it doesnt work

2)
i tried finding any ip's allocated to the adress in NMAP

cant find any ip assigned to raspberry pi.

please help

rpi model :2
os : raspbian jessie

jbudd
Posts: 1446
Joined: Mon Dec 16, 2013 10:23 am

Re: Cant connect raspberry pi to a laptop

Tue Oct 04, 2016 7:46 am

It's not completely clear what you are trying to achieve.
and i wanted to connect it to the laptop ( not the router)
That implies you want your laptop to act as the wireless access point and your Pi as the client.
turned on radio button " obtain ip address automatically "
That implies that you want your Pi to be the access point and your laptop to be the client.

The IP address 169.254.193.83 indicates that your laptop failed to find a DHCP server (to give it a real IP address). So, if your Pi is set up as an access point, and the laptop is connecting to it, you just need to change "Obtain an IP address automatically" to specifying an address in the same range as the Pi's.

As a matter of interest, if you have a router, why do you want to connect laptop and Pi directly?

fruitoftheloom
Posts: 23549
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Cant connect raspberry pi to a laptop

Tue Oct 04, 2016 8:10 am

https://pihw.wordpress.com/guides/direc ... connection

You appear to not have Windows Connection Sharing set up correctly.

No changes should be required on the RPi unless you want Static IP.
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

Return to “Beginners”