I am trying to connect my Raspberry Pi 2 model B V 1.1
using Raspbian Wheezy to my laptop that is connected to the internet using Wi-Fi and my LAN port is empty. I followed The best way to connect Raspberry Pi to laptop display to connect and everything is fine and working but my laptop assigned IP to the Ethernet is 192.168.137.1
so I tried to connect using VNC Viewer
but that is saying that The connection was refused by the host computer
.
After this I tried to find out my IP address from Raspberry and I got 192.168.137.XX
or sometimes 192.XXX.XXX.XXX
means totally different IP addresses as shown in the laptop Ethernet. When I used the Raspberry Pi's IP address in VNC Viewer then it's working fine but when I do not have a display connected to my Raspberry Pi then how can I know the internal IP address of my Raspberry Pi?
ipconfig
in windows but the IP that is showing there is different from the IP showing in Raspberry Pi. Now what should I do?ping raspberrypi
in windows to know the IP of RaspberryPi but saying thatPing request could not find host raspberrypi. Please check the name and try again.
192.168.137.1
in Win >= 7,192.168.0.1
in Win <= XP. Now, you know that the DHCP server on your Ethernet interface assigns IPs incrementally. So the IP of the raspi is probably192.168.0.2
(WinXP) or192.168.137.2
(Win>=7). Tryping 192.168.137.2
.