Accept incoming connections when logged off?
-
One Stone wrote: It's not the process what isn't working Hint: 1. It is the process, not w2k. 2. People will get mad at you for posting a programming question here.[
My articles and software tools
> 1. It is the process, not w2k. Does Win2k really not block incoming TCP connections when logged off? How must I modify my program then? Please, if you know, tell me :) I searched the whole web for hours now, but didn't find anything :(( > 2. People will get mad at you for posting a programming question here. Is it a programming question? I thought it's a configuration problem of Win2k, so it's not a programming question?
-
> 1. It is the process, not w2k. Does Win2k really not block incoming TCP connections when logged off? How must I modify my program then? Please, if you know, tell me :) I searched the whole web for hours now, but didn't find anything :(( > 2. People will get mad at you for posting a programming question here. Is it a programming question? I thought it's a configuration problem of Win2k, so it's not a programming question?
One Stone wrote: Is it a programming question? One Stone wrote: How must I modify my program then? That would probably lead to a progamming answer, so it will become a programming question. ;P Weiye Chen Life is hard, yet we are made of flesh...
-
One Stone wrote: Is it a programming question? One Stone wrote: How must I modify my program then? That would probably lead to a progamming answer, so it will become a programming question. ;P Weiye Chen Life is hard, yet we are made of flesh...
I actually don't know if it's a configuration problem with Win2k or what I have to add to my program to make it work... Initially I thought it's a configuration problem, since I can log on (program working) and log off (program not working). You know what's wrong? Note: if you think the answer is a programming answer, you can post it in the VC++ forum ;-)
-
Hi! I'm currently programming some tool that installs a process (automatically running at startup as admin), which accepts incoming network TCP connections, processes some data and returns something. Think of something like a FTP or web server. I'm using Windows 2000. Now I got a problem: while I'm logged on, the tool works perfectly, everything runs fine. The server accepts all clients and returns the correct data. But when I log off, Win2k doesn't accept incoming connections any more... It's not the process what isn't working, the process remains perfectly in the background and isn't killed or stopped. It's just that Windows 2000 seems to block incoming connections while nobody is logged on... As soon as somebody is logged on, the server gets the incoming connections again... Any way to tell Win2k to accept incoming connections while nobody is logged on?? Maybe we can even define the port?? Or maybe I must call something from my program? Thanks and best regard
You need to make your program a Windows Service. And to address another reply you got, I don't see how this is a programming question. - Anders My Photos
WDevs - The worlds first DSP, free blog space, email and more
-
You need to make your program a Windows Service. And to address another reply you got, I don't see how this is a programming question. - Anders My Photos
WDevs - The worlds first DSP, free blog space, email and more
Anders Molin wrote: I don't see how this is a programming question. If it is not already a service, then he needs to know how to do it. That is almost a programming question. In any case, he needs to know how a service and a regular program are programmatically different. ;P[
My articles and software tools
-
I actually don't know if it's a configuration problem with Win2k or what I have to add to my program to make it work... Initially I thought it's a configuration problem, since I can log on (program working) and log off (program not working). You know what's wrong? Note: if you think the answer is a programming answer, you can post it in the VC++ forum ;-)
Even if it is an OS configuration problem is still shouldn't have been asked here. It should have been asked in the Operating Systems message board (OS /SysAdmin). Regards, Brian Dela :-) Now Reading: Code Complete 2ed[^] by Steve McConnell
-
Anders Molin wrote: I don't see how this is a programming question. If it is not already a service, then he needs to know how to do it. That is almost a programming question. In any case, he needs to know how a service and a regular program are programmatically different. ;P[
My articles and software tools
Well, I have seen regulars, here on CP, post stuff thats closer to a programming question and no one dare to tell it to them, so I have no problem with the original question in this thread ;) - Anders My Photos
WDevs - The worlds first DSP, free blog space, email and more
-
Even if it is an OS configuration problem is still shouldn't have been asked here. It should have been asked in the Operating Systems message board (OS /SysAdmin). Regards, Brian Dela :-) Now Reading: Code Complete 2ed[^] by Steve McConnell
Brian, why dont you say the same when michael martin or roger wright asks/rants about OS stuff in here... Or when christian graus talks about Managed DirectX usage from his program. I'm a bit tired of seeing that the regulars can do stuff but the not-so-known members can not... Nothing personal, you just happened to trigger me to finally write it ;) - Anders My Photos
WDevs - The worlds first DSP, free blog space, email and more
-
Hi! I'm currently programming some tool that installs a process (automatically running at startup as admin), which accepts incoming network TCP connections, processes some data and returns something. Think of something like a FTP or web server. I'm using Windows 2000. Now I got a problem: while I'm logged on, the tool works perfectly, everything runs fine. The server accepts all clients and returns the correct data. But when I log off, Win2k doesn't accept incoming connections any more... It's not the process what isn't working, the process remains perfectly in the background and isn't killed or stopped. It's just that Windows 2000 seems to block incoming connections while nobody is logged on... As soon as somebody is logged on, the server gets the incoming connections again... Any way to tell Win2k to accept incoming connections while nobody is logged on?? Maybe we can even define the port?? Or maybe I must call something from my program? Thanks and best regard
Make your app a service, and it will work as long as windows is running. Of course, you have to hope windows doesn't have a meltdown while nobody is logged on, but hey, you have to start trusting Microsoft's os at some point. (Did I really just say that?) ------- sig starts "I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
-
Brian, why dont you say the same when michael martin or roger wright asks/rants about OS stuff in here... Or when christian graus talks about Managed DirectX usage from his program. I'm a bit tired of seeing that the regulars can do stuff but the not-so-known members can not... Nothing personal, you just happened to trigger me to finally write it ;) - Anders My Photos
WDevs - The worlds first DSP, free blog space, email and more
> Brian, why dont you say the same when michael martin or roger wright asks/rants about OS stuff in here... First of all.. I was pointing the person the correct message board... where they are most likely to get a proper response rather than get flamed. If you look over the repsonses I've given to people who have posted incorrectly (in my opinion) I don't get bitchy or abuse the person.. I just point them to the place where they will most likely get a correct answer... and normally the people I point to those message boards are people who are new to CP, so they probably don't even know of the other message boards. For example, if PW, or MD, or somebody who has been on CP for ages came in and started asking programming questions in the lounge then I would probably just laugh at them... Anyway.. I honestly can't remember any posts in recent times from CG or MM or RW about programming/hardware etc. Unfortunatly I don't get to spend much time here on CP anymore as I'm a bit busy so when I do, I just drop into the lounge and read the first page or two of posts. I don't go beyond that so there is a fairly high chance that is you look at these posts by MM, RW, CG or whoever else, I'm not posting in or around the same posts. Add to that the fact that ranting about something IS NOT asking a question, it's ranting... so chances are I wouldn't point somebody who is ranting to a programming message board anyway.. what is the point of going there to rant? Although constant ranting used too get people sent to The Soapbox. The person in this post was asking for specific help/suggestions... In my opinion I pointed the person, who just happend to be new to CP, to the correct location. In my opinion I done it in a nice, friendly way. If it sounded outerwise then it's probably because I was up working until 6am this morning, then my house mate got up to go to work at 6:30 and the shower just happens to be attached to the other side of the wall that the headboard of my bed is against and Ulla has this strange, but extremely cute, need to get up out of bed at around 7am every morning and start pottering around the house doing stuff... So I'm tired.. maybe I wasn't my usual joyful, happy, colourful self. But still... What the hell did I do wrong? :confused: :wtf: :sigh: >Nothing personal, you just happened to trigger me to finally write it I know. No personal offence taken whatsoever. It would take an awful lot to offend me :-D Regards, Brian Dela :-) Now Reading:
-
> Brian, why dont you say the same when michael martin or roger wright asks/rants about OS stuff in here... First of all.. I was pointing the person the correct message board... where they are most likely to get a proper response rather than get flamed. If you look over the repsonses I've given to people who have posted incorrectly (in my opinion) I don't get bitchy or abuse the person.. I just point them to the place where they will most likely get a correct answer... and normally the people I point to those message boards are people who are new to CP, so they probably don't even know of the other message boards. For example, if PW, or MD, or somebody who has been on CP for ages came in and started asking programming questions in the lounge then I would probably just laugh at them... Anyway.. I honestly can't remember any posts in recent times from CG or MM or RW about programming/hardware etc. Unfortunatly I don't get to spend much time here on CP anymore as I'm a bit busy so when I do, I just drop into the lounge and read the first page or two of posts. I don't go beyond that so there is a fairly high chance that is you look at these posts by MM, RW, CG or whoever else, I'm not posting in or around the same posts. Add to that the fact that ranting about something IS NOT asking a question, it's ranting... so chances are I wouldn't point somebody who is ranting to a programming message board anyway.. what is the point of going there to rant? Although constant ranting used too get people sent to The Soapbox. The person in this post was asking for specific help/suggestions... In my opinion I pointed the person, who just happend to be new to CP, to the correct location. In my opinion I done it in a nice, friendly way. If it sounded outerwise then it's probably because I was up working until 6am this morning, then my house mate got up to go to work at 6:30 and the shower just happens to be attached to the other side of the wall that the headboard of my bed is against and Ulla has this strange, but extremely cute, need to get up out of bed at around 7am every morning and start pottering around the house doing stuff... So I'm tired.. maybe I wasn't my usual joyful, happy, colourful self. But still... What the hell did I do wrong? :confused: :wtf: :sigh: >Nothing personal, you just happened to trigger me to finally write it I know. No personal offence taken whatsoever. It would take an awful lot to offend me :-D Regards, Brian Dela :-) Now Reading:
I did not say you did anything wrong, I'm just a bit bugged about how things works here. Meaning, oldtimers which for some reason are popular can get away with a lot, and when new people do the same they get told that it's not appropriate for the lounge... Basically I think everyone should move their OS (as in Operating System, not Open Source) questions to the OS forum, and I tried to tell one of the other that once, and I got rather unpopular... Ahhh well, thats the way it is I think, some people will always get away with more than others X| Brian, it was nothing personal as I said, and I don't think you did anything wrong and I think you are a nice guy, you just happened to trigger something in me ;) - Anders My Photos
WDevs - The worlds first DSP, free blog space, email and more
-
I did not say you did anything wrong, I'm just a bit bugged about how things works here. Meaning, oldtimers which for some reason are popular can get away with a lot, and when new people do the same they get told that it's not appropriate for the lounge... Basically I think everyone should move their OS (as in Operating System, not Open Source) questions to the OS forum, and I tried to tell one of the other that once, and I got rather unpopular... Ahhh well, thats the way it is I think, some people will always get away with more than others X| Brian, it was nothing personal as I said, and I don't think you did anything wrong and I think you are a nice guy, you just happened to trigger something in me ;) - Anders My Photos
WDevs - The worlds first DSP, free blog space, email and more
> Brian, it was nothing personal as I said I didn't take it personally at all. I agree with you completely... It shoud lbe the same for everyone. But IMO the post was one that would receive the best response by going to the correct forum. > I think you are a nice guy Thanks :-) Your not so bad yourself :-D Regards, Brian Dela :-) Now Reading: Code Complete 2ed[^] by Steve McConnell
-
Brian, why dont you say the same when michael martin or roger wright asks/rants about OS stuff in here... Or when christian graus talks about Managed DirectX usage from his program. I'm a bit tired of seeing that the regulars can do stuff but the not-so-known members can not... Nothing personal, you just happened to trigger me to finally write it ;) - Anders My Photos
WDevs - The worlds first DSP, free blog space, email and more
Anders Molin wrote: Brian, why dont you say the same when michael martin or roger wright asks/rants about OS stuff in here... Cause Roger and me are special. Anders Molin wrote: Or when christian graus talks about Managed DirectX usage from his program. I can't understand this myself, he's a Tasmanian for christ sake. Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So i had to leave the place as soon as possible." - Mr.Prakash 24/04/2004
-
Anders Molin wrote: Brian, why dont you say the same when michael martin or roger wright asks/rants about OS stuff in here... Cause Roger and me are special. Anders Molin wrote: Or when christian graus talks about Managed DirectX usage from his program. I can't understand this myself, he's a Tasmanian for christ sake. Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So i had to leave the place as soon as possible." - Mr.Prakash 24/04/2004
Michael Martin wrote: Cause Roger and me are special. You know what they say--special is as special does...
I Do Whatever My Rice Krispies Tell Me To. Toasty0.com
-
Brian, why dont you say the same when michael martin or roger wright asks/rants about OS stuff in here... Or when christian graus talks about Managed DirectX usage from his program. I'm a bit tired of seeing that the regulars can do stuff but the not-so-known members can not... Nothing personal, you just happened to trigger me to finally write it ;) - Anders My Photos
WDevs - The worlds first DSP, free blog space, email and more
Ranting about OS problems, or sharing a frustrating experience with one is not posting a question, but in general I agree with you. Asking specific questions about an OS or network problem is appropriate in the OS/Admin forum. In fact, that's usually my first stop at CP for the day, just in case there's something new there that I can help with. I do feel that, in view of the low traffic level there, if that fails to generate a response it is sometimes appropriate to escalate a question to the Lounge, especially if it may be instructive ( or humorous ) to many, in order to generate more responses. It should be a rare thing, though, not a daily occurance. This post was not a programming question, and as such is not prohibited from the Lounge. I would have gladly answered it here if I had a clue how to solve the problem, but I've experienced similar things with Win2K myself and never quite figured out how to fix them. It may have been better to post it in the OS/Admin forum first, but I see no problem with it eventually winding up here. We're all geeks, and technical stuff is our peculiar idea of fun. I have no idea what the rest of humanity does for entertainment, but fixing stuff works for me.:-D "If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
-
Make your app a service, and it will work as long as windows is running. Of course, you have to hope windows doesn't have a meltdown while nobody is logged on, but hey, you have to start trusting Microsoft's os at some point. (Did I really just say that?) ------- sig starts "I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
John Simmons / outlaw programmer wrote: you have to start trusting Microsoft's os at some point. I can't believe you said that, John!:omg: I think that would make a great sig...:laugh: "If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
-
Hi! I'm currently programming some tool that installs a process (automatically running at startup as admin), which accepts incoming network TCP connections, processes some data and returns something. Think of something like a FTP or web server. I'm using Windows 2000. Now I got a problem: while I'm logged on, the tool works perfectly, everything runs fine. The server accepts all clients and returns the correct data. But when I log off, Win2k doesn't accept incoming connections any more... It's not the process what isn't working, the process remains perfectly in the background and isn't killed or stopped. It's just that Windows 2000 seems to block incoming connections while nobody is logged on... As soon as somebody is logged on, the server gets the incoming connections again... Any way to tell Win2k to accept incoming connections while nobody is logged on?? Maybe we can even define the port?? Or maybe I must call something from my program? Thanks and best regard
I needed something like that some time ago because our accountants program licence system needs it... as I couldn't modify the code because the program is not mine, I solved it using the XYNTService app. you can find it here in CP at this address: http://www.codeproject.com/system/xyntservice.asp[^] Hope this helps. NOTE: it worked for me in a WinXP Pro.
-
I needed something like that some time ago because our accountants program licence system needs it... as I couldn't modify the code because the program is not mine, I solved it using the XYNTService app. you can find it here in CP at this address: http://www.codeproject.com/system/xyntservice.asp[^] Hope this helps. NOTE: it worked for me in a WinXP Pro.
Nice find, Joan! Thanks for the link!:-D "If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
-
Make your app a service, and it will work as long as windows is running. Of course, you have to hope windows doesn't have a meltdown while nobody is logged on, but hey, you have to start trusting Microsoft's os at some point. (Did I really just say that?) ------- sig starts "I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
John, if you're a diabetic, you really need to check your glucose level. You sound like you're running at a level of 30 or so. :laugh:
Software Zen:
delete this;