Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/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://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

maximum number of host sections in helpdesk.txt

Single Click discussions / bugs
Post Reply
Stijn78
Posts: 1
Joined: 2009-09-17 18:23

maximum number of host sections in helpdesk.txt

Post by Stijn78 »

Hi,

We have been using UltraVNC SC for a couple of years now in our university.
All worked fine until now.

Apparently there is a limit on the number of [HOST] sections you can add to helpdesk.txt. I currently have 24 sections. If I add another host-section I get strange text in the list of our helpdesk.exe file. Text like "o listening VNC viewer" appears after the name of the person I added.
Is there a way I can get passed the host sections limit without breaking up my exe file into seperate ones?

Any help would be greatly appreciated.

Stijn
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6862
Joined: 2004-04-23 10:21
Contact:

Re: maximum number of host sections in helpdesk.txt

Post by Rudi De Vos »

Indeed, list is limited.
Not possible without code change ( limit is hardcoded)
User avatar
pgmoney
100
100
Posts: 285
Joined: 2004-06-26 22:29
Contact:

Re: maximum number of host sections in helpdesk.txt

Post by pgmoney »

Rudi De Vos wrote:Indeed, list is limited.
Not possible without code change ( limit is hardcoded)
Not sure if this will apply to the updated SC (I don't have current sources) but this should raise the limit to 50 and adds a check to prevent the array overflow if there are too many host entries.

winvnc.cpp:

Code: Select all

//PGM 	g_var[25][150];
//PGM 	g_var_20[25][50];
char	g_var[50][150]; //PGM
char	g_var_20[50][50]; //PGM

Code: Select all

	while( fgets( myline, sizeof(myline), fid ))
	{
		int j=0;
		if (strncmp(myline, "[END]", strlen("[END]")) == 0) {
		break;
		}
		if (strncmp(myline, "[BEGIN HOSTLIST]", strlen("[BEGIN HOSTLIST]")) == 0) {
			continue;
		}

//PGM 		if (strncmp(myline, "[HOST]", strlen("[HOST]")) == 0) {
		if (i < 50 && strncmp(myline, "[HOST]", strlen("[HOST]")) == 0) { //PGM
...Phil
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6862
Joined: 2004-04-23 10:21
Contact:

Re: maximum number of host sections in helpdesk.txt

Post by Rudi De Vos »

When i made sc i expected no small support company's to have more then 24 engineers... :o

I will update it to 50 next build.
m.gerardi
Posts: 1
Joined: 2009-09-21 19:48

Re: maximum number of host sections in helpdesk.txt

Post by m.gerardi »

I have the same problem, but we need about 100 host sections. We need all this host sections because each operators sometimes connect to more than one customer at time.
Is this possible? If possible, how long you take to build it?

Thank you very much
Last edited by m.gerardi on 2009-09-21 20:08, edited 1 time in total.
User avatar
JDaus
Friend of UVNC
Friend of UVNC
Posts: 537
Joined: 2007-03-17 11:00
Location: Sydney, Australia
Contact:

Re: maximum number of host sections in helpdesk.txt

Post by JDaus »

m.gerardi wrote:I have the same problem, but we need about 100 host sections. We need all this host sections because each operators sometimes connect to more than one customer at time.
Each operator can recieve multiple connections on the one "HOST" setting ... otherwise if each operator uses multiple connections, then they will need multiple copies of the viewer running to recieve each connection on the different ports ... kind of defeats the purpose of it all i thought.

why not just run the tabbed viewer in listen mode, then you have tabs showing with all your connections on the one window ...
ask a silly question and remain a fool for 5 minutes...
don't ask, and remain a fool for life - JDaus 2003

without imperfections, neither you nor i would exist - Steven Hawkins
__
JD
SCPrompt - OpenSource Free Remote Screen\Desktop Sharing Solution
SecureTech.com.au
gui_ap
Posts: 1
Joined: 2011-05-16 14:46

Re: maximum number of host sections in helpdesk.txt

Post by gui_ap »

This still is not working?
I need 50 hosts.
celangoni
Posts: 1
Joined: 2011-09-28 15:43

Re: maximum number of host sections in helpdesk.txt

Post by celangoni »

Hi all!
Is there any way to create a host list with more than 50 entries?
We are preparing a community support project and have about 100 people to help with support.

I have read the forum, but all replies, even for offline creators, have limitations in host entries.
can I change and compile the source code of a generator to do this? How to could I do it?

I'm not a very experiencied programmer (only in php language).

Thanks a lot!
B
800
800
Posts: 2338
Joined: 2009-09-09 14:05

Re: maximum number of host sections in helpdesk.txt

Post by B »

You could probably follow pgmoney's example above if you want to modify it yourself, replacing the "50" with "100".

But why not use a repeater instead? You can have thousands of hardcoded "session IDs" with one repeater. If neither SC nor SCPrompt nor ChunkVNC will support that many listings in their interfaces, just create multiple packages, or one per session ID.

Even easier, just provide a list of session IDs (much like a telephone directory) on a web page or splash screen, and have the user type the ID. This is more or less how ChunkVNC works now. And Join.me for that matter. Users enter the numeric code the connection they wish to use.
Post Reply