mstrick96
Posts: 4
Joined: Wed Mar 23, 2016 3:13 pm

RealVNC IP Address

Sun Mar 27, 2016 7:14 pm

Am trying to get RealVNC Server working right on my RPi3 running Jessie. Have the RealVNC Viewer on my iPad. Am starting with the free version to evaluate it and will upgrade to get encryption later.

RealVNC Server gives me an IP address to use to connect to it, and when I use that IP from the same network, it works but has a sluggish response time. The IP address begins 169.254.xxx.xxx and is not in a form that my router recognizes which should be in the form 192.168.xxx.xxx.

When I try to set up external Internet access, my router will only forward ports to IP addresses in the form 192.168.xxx.xxx. Therefore I can't get external access.

Also, my router does not show that it is connected to the RPi in the device list. However, from the RPi it should that it is associated with my router network. But I don't have an IP address for the RPI in the form 192.168.xxx.xxx.

Any suggestions on how to get this fixed? RealVNC won't help because I'm not using the paid version. Of course, the absence of support doesn't make me feel good about buying the upgrade!

mstrick96
Posts: 4
Joined: Wed Mar 23, 2016 3:13 pm

Re: RealVNC IP Address

Sun Mar 27, 2016 9:13 pm

Update: I have now stopped the VNC server so it is not running. I disabled the autostart on reboot to keep it off. I also have unplugged the Eth0 cable.

At this point, my Wlan0 connection shows the following:

wlan0: Associated with MLS ATT
wlan0: Configured to 169.254.113.183/16
eth0: Link is down

I have been trying to get the IP address 169.254.113.183/16 to go away. I'd like to get it cleared out and let the router assign it a new address in the form 192.168.xxx.xxx. This is an address that my router will recognize and that it can forward ports to.

How can I get this IP address corrected?

User avatar
DougieLawson
Posts: 35784
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: RealVNC IP Address

Sun Mar 27, 2016 9:19 pm

sudo rm /var/lib/dhcpcd5/*.lease; sudo reboot
You also need to check your WiFi credentials and your ethernet cable.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

dchao99
Posts: 45
Joined: Fri Jan 15, 2016 9:26 pm

Re: RealVNC IP Address

Sun Mar 27, 2016 9:43 pm

mstrick96 wrote:The IP address begins 169.254.xxx.xxx and is not in a form that my router recognizes which should be in the form 192.168.xxx.xxx.
You say the performance is sluggish, but if the router is really on 192.168.0.1 and your Pi is on 169.254.xxx.xxx, both will not communicate at all because they are on different two different subnets.
And if you go and check, your router is probably on 169.254.0.1 (the same subnet as your Pi).
I think you have mis-config'ed your router somehow. Maybe you have two networks with the same SSID? Do you have other devices on the same WiFi network? What IP address are they on?

User avatar
DougieLawson
Posts: 35784
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: RealVNC IP Address

Sun Mar 27, 2016 10:04 pm

BZZT! Wrong!

169.254.xxx.xxx/16 is the link-local subnet that is used when an interface can't reach a DHCP server to get an address assigned. So the problem is that the RPi is failing to request/accept a DHCP address and that's either because the ethernet cable is bad (or disconnected) or the WiFi credentials don't match the router's credentials.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

dchao99
Posts: 45
Joined: Fri Jan 15, 2016 9:26 pm

Re: RealVNC IP Address

Sun Mar 27, 2016 10:54 pm

DougieLawson wrote:BZZT! Wrong!

169.254.xxx.xxx/16 is the link-local subnet that is used when an interface can't reach a DHCP
OK,my bad. I've totally forgotten about this special link-local subnet address. :D

Return to “Raspbian”