Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Viewer Netbios resolution problem

Post Reply
burzek
8
8
Posts: 28
Joined: 2006-06-01 15:51

Viewer Netbios resolution problem

Post by burzek »

Hi,

I am having this problem for a long time but today it just drove me crazy.
I am having problem with netbios resolution with vnc viewer.
This is quite random , generally I use uvnc in LAN. Therefore accessing windows 10 pc with their netbios names.
What happens is , I connect and close the connection and try to connect again and viewer does not resolve the name and connect.
I can ping with the name , I can connect with ip directly , but using name(containing number also) it just does not connect.
After some minutes I try with name again and it connects. This is making me crazy.
Is there a confirmed bug in netbios resolution ?

Best Regards,
Burzek
Bonji
100
100
Posts: 339
Joined: 2008-05-13 14:54

Re: Viewer Netbios resolution problem

Post by Bonji »

Are you able to resolve the name using NBTSTAT?
-Ben
burzek
8
8
Posts: 28
Joined: 2006-06-01 15:51

Re: Viewer Netbios resolution problem

Post by burzek »

Hi Ben,

Uvnc is fine, it was my bad...
Eventhough I had configured for some many years with win10 things began to work unexpectedly.
I had a raspberry pi dhcp server , and had defined different hostnames in dhcp.conf (like hostname , hostname- for same machine) when ip was given to notebooks connecting via ethernet or wifi.
In the case here I am using a notebook with wifi connection and its ip last digit is 1 number more than ethernet ip like 10 for ethernet 11 for wifi.
However, I had gave same hostname given in etc/hosts to see the machine-hostnames in nmap scans.
Also have a samba server with wins enabled with no hostname defined in /etc/hosts in dhcp - ip ranges.

However for some reason win10 client with static ip and wins server ip defined, seemed to be caching the ethernet ip which was 1 ip less then wifi ip of the notebook.
Also was seeing same in wins server wins.dat , it was getting info from raspberry pi for some reason, but nmblookup always get correct ip since it was using broadcast not wins caching in linux.
However I was able to ping notebook with correct ip in win10 , while the nbtstat -c was showing other ip (ethernet for the notebook!!)
After clearing with nbtstat -R and -RR , and after pinging , nbtstat gets correct ip and I could connect via uvnc entering hostname.
However when not pinging after clearing cache with nbtstat, uvnc hostname connecting was making nbtstat cache other ip again and only connecting via entering ip address directly was the solution to connect urgently.
So far after seeing inside wins.dat, I decided to enter hostname-1;hostname-2 in /etc/hosts and dhcp.conf for the same machine , so far, everthing is fine.

Thanks for taking interest and reading...
Cheers,
Burzek
Post Reply