Inscrit le: 16 Oct 2017
Moyenne de points: 1,00
|Posté le: Mer 20 Déc - 06:51 (2017) Sujet du message: creating server
I have a Linux device I am setting up as a client to connect to a PC that is set up as a server. I call RegisterTCPServer() in a Labwindows program on the PC. I am observing that the Linux device (client) needs to be powered up prior to calling RegisterTCPServer() or the Labwindows program never works.
For example, I set the IP on the PC to 10.1.10.22. With the Linux device powered off and I call RegisterTCPServer() and then call GetTCPHostAddr(), the return IP is different than 10.1.10.22 and I can never set the PC as a server.
However, if the Linux device is powered up first, GetTCPHostAddr() returns the correct IP (10.1.10.22) and I am able to set the PC up as a server and communicate successfully.
How can I modify the Labwindows code so it can be running prior to powering on the client and successfully work as a server?
I didn't find the right solution from the Internet.
Online Promotional Advertising Examples