top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Executing TCP server as windows service?

+1 vote
459 views

I developed a multithreaded tcp server with python and I converted into a windows executable using pyinstaller.

I would like to run the server as a windows service so that server restarts whenever pc restarts without doing it manually .

Can someone help me out with some sample code .

posted Sep 23, 2014 by Deepak Dasgupta

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes
answer Sep 23, 2014 by Bob Wise
Similar Questions
0 votes

I want to make a TCP server which accepts connection from the configured list of IPs.

+2 votes

I'm receiving the following exception:

java.net.SocketException: "Permission denied": connect

when instantiating a Socket from a servlet:

final Socket smtpSocket = new Socket(mailTransportHost, mailTransportPort);

This application was running as a service under Windows Server 3003 R2 32-bits. After migrating it to Windows Server 2008 R2 64-bit, I cannot longer establish connection with the smtp server.

This only happen when running Tomcat as a service. Running as a standalone (starting it up using startup.bat) works fine. No exception instantiating Socket, emails are sent.

Environment:

 - Windows Server 2008 R2 64-bit
 - Tomcat 7.0.39
 - jdk1.6.0_33-x64
+1 vote

We have had issues with system resources, primarily RAM, maxing out and effectively overwhelming an Apache web server.
We have noticed that some of the default TCP time settings on Solaris 10 seem really high. Is there any sort of standard TCP settings that have been adopted, or suggested, for a Solaris 10 system running Apache 2.2?Can anyone share what they have done?

+1 vote

I have Windows 7 64 bit, and all updates are installed. I cannot download IE 10, as it says I need Service Pack 1, which, as far as my PC is concerned, is non-existent.

I have checked ALL the installed updates (guess how long that took!) - I have the Service packs for my Office version, so where or what is Service Pack 1 for Windows 7, or is it a figment of the MS imagination?

...