connecting to pi through terminal

July 8, 2024, 01:59

ducky510984

so i need an eathernet cable to connect to my pi through the terminal (windows to the default pi os). when i try to ping the pi from my laptop the requests get blocked. now i know its connected to the internet because i could search stuff up the pi when i was connected with mouse and keyboard. now is there a way to fix this so i dont need a eathernet cable plugged in to the router

justaccsolol

wifi

justaccsolol

ssh

ducky510984

🙂

ducky510984

cont even ping it bro

justaccsolol

weird

justaccsolol

does it say host unreachable?

ducky510984

let me check

ducky510984

yes

justaccsolol

ah

justaccsolol

you have the pi disconnected from the ethernet rn?

ducky510984

yes

justaccsolol

and you can manage the pi

justaccsolol

nvm

ducky510984

yes i got 50 things pluged into it

ducky510984

lol

justaccsolol

just go to wifi

justaccsolol

and connect it over there

justaccsolol

and that would be it

justaccsolol

then

ducky510984

?

justaccsolol

in your terminal type ifconfig

ducky510984

wait so just conect it to wifi?

justaccsolol

yeha

justaccsolol

if you dont want to use ethernet

ducky510984

alr

justaccsolol

use wifi

ducky510984

yeh

ducky510984

alr i typed if config

ducky510984

ifconfig*

justaccsolol

in wlan0 or wlan1

justaccsolol

there should be an ip

justaccsolol

if you connected it over wifi

ducky510984

i only got wlan

ducky510984

0

justaccsolol

good

justaccsolol

you're connected

ducky510984

i see an ip

justaccsolol

now on your windows machine type ssh username@ip

ducky510984

thats what ive been doing but ok

ducky510984

i think its gunna time out

justaccsolol

weird

justaccsolol

can you ping it

ducky510984

ssh: connect to host [ip]port 22: Connection timed out

ducky510984

it says reply form ip: Destination host unreachable.

justaccsolol

weird

justaccsolol

wait

ducky510984

yeh

justaccsolol

does the ip start with 127?

ducky510984

no it starts with 192

justaccsolol

oh yeah then it should be connected

ducky510984

._.

ducky510984

shouild

justaccsolol

can you ping from the pi to the windows machine

ducky510984

let me check

ducky510984

how find windows ip?

justaccsolol

ipconfig

ducky510984

idk witch ip it is but i got to go to bed cuz its getting late

justaccsolol

same

justaccsolol

its 4 am where i live lol

ducky510984

i think i was sshing the wrong ip

ducky510984

the ip when the eathernet cable was pluged in

ducky510984

D:

ducky510984

at least i got it to work

ducky510984

/close

ducky510984

-close

ducky510984

!close

justaccsolol

ah