Error Creating Listening Daemon Error Binding Daemon Socket
board cookies • All times are UTC Powered by phpBB Forum Software © phpBB Group
to work and connect Trouble getting RC to work and connect Post Reply Author Message Brew SysAider 4 Trouble getting RC to work and connect Feb. 04, 2010 01:08 PM I've been "fighting" with the remote control feature in sysaid for a few days. I've got the program installed and running. I then downloaded and installed SysAid administrator tools. When I go to my start menu, all programs, sysaid, and then deploy sysaid, the window pops up for me to select my users computers to intall the second peice on, but http://forum.ultravnc.info/viewtopic.php?f=3&t=29257 nothing happens from there. Now, Ill say this, in our agency, I have two user accounts. I have my regular user account and I have an Admin account. When I follow the steps above under my Admin account, it scans the network, shows me the computers and I deploy the tool to the end users computers, but I still cant remote https://www.sysaid.com/Sysforums/posts/list/3687.page in. If I then switch over to my regular account, I still cant log in. If I go to start, all programs, sysaid, sysaid remote control tool, I get a pop up saying: VNC Viewer error Error creating listening daemon; (Error creating flasher socket) Perhaps another VNC viewer is already running? Any ideas? Obelix SysAid Wiz 909 Trouble getting RC to work and connect Feb. 04, 2010 10:43 PM Well... have you follow up the error message ? Try changing the port no ? SBIT Super SysAider 78 Re:Trouble getting RC to work and connect Feb. 06, 2010 03:32 PM Hi Brew, The agents call back to the server (by the address you typed in when you deployed it), on port 4228 by default. You need to make sure the path from the remote PC to your admin PC on port 4228 is open. Check your firewall on the remote PC, check / configure your port forwarding on the router/firewall to your admin PC, open the port on your admin PC. Let me know if that helps. SBIT Super SysAider 7
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site http://stackoverflow.com/questions/18866380/creating-daemon-processing-from-server-socket About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up creating daemon processing error creating from server socket up vote 4 down vote favorite I have one socket, which act as server while executed and response some results. First I compile it: g++ -o a daemon.cpp dictionary.cpp -lpthread c++11 then execute : ./a Now it will listen for the request on some port. I want that one I create the object file a, it should not manually executed. Rather work error creating listening as daemon file, which continously listen for the request. I saw using fork() id something can be done. But I could not correct place in my below code: variable declation I have removed: using namespace std; using namespace boost; void *SocketHandler(void *); int main(int argv, char **argc) { pthread_t thread_id = 0; hsock = socket(AF_INET, SOCK_STREAM, 0); if (hsock == -1) { printf("Error initializing socket %dn", errno); goto FINISH; } p_int = (int *) malloc(sizeof(int)); *p_int = 1; if ((setsockopt(hsock, SOL_SOCKET, SO_REUSEADDR, (char *) p_int, sizeof(int)) == -1) || (setsockopt(hsock, SOL_SOCKET, SO_KEEPALIVE, (char *) p_int, sizeof(int)) == -1)) { printf("Error setting options %dn", errno); free(p_int); goto FINISH; } free(p_int); my_addr.sin_family = AF_INET; my_addr.sin_port = htons(host_port); memset(&(my_addr.sin_zero), 0, 8); my_addr.sin_addr.s_addr = INADDR_ANY; if (bind(hsock, (sockaddr *) & my_addr, sizeof(my_addr)) == -1) { fprintf(stderr, "Error binding to socket, make sure nothing else is listening on this port %dn", errno); goto FINISH; } if (listen(hsock, 10) == -1) { fprintf(stderr, "Error listening %dn", errno); goto FINISH; } //Now lets do the server stuff addr_size = sizeof(sockaddr_in); int pid; pid_t pid=fork(); if(pid<0) exit(EXIT_FAILURE); else if(pid>0){ //this is parent process, exit now exit(EXIT_SUCCESS); // again no goto