Originally Posted by
Ancient Dragon
Are you combining client and server into just one program ? Or are they still two separate programs that are executed on the same machine ?
>>Also how do i set a static ip address in the code because the Winsock Server requires the user to type an ip address first, i would like to make it a default ip.
Just set the variable used for the manual entry to be "127.0.0.1", which is always the local machine.
Hi, thanks for the reply. Yes they are 2 separate programs that are executed on the same machine. This Winsock TCP Server itself is an .exe whereby the user have to type in an ip address and the record program has an OnButton function that requires the user to press a button so it can start working. What i would like to do is to remove this OnButton function and then use the Server code to notify it to start auto-recording.
The reason why i would i like to set a static ip is because i do not know how to execute them at the same time, if i can set a static ip address within the server code, then there won't be a need to prompt the user for an ip address, hence allowing the Server and record program to run at the same time.