how could I change the Client's IP address automatically  
Author Message
Madix_t





PostPosted: Visual FoxPro General, how could I change the Client's IP address automatically Top

Good day to all experts,

how could we change the client's IP address automatically from the server .

I have a small program running at the workstation and have also a program that monitor the workstation at the server which both works fine.

But sometimes the user change the ip address which was manually configure and if i use DHCP they put an IP manually just for fun or just for experimenting or what-ever their motives i don't know.

So i am thinking, if why not checking it at the server if one station's IP address has change , why bothering going to the workstation if it can be easily replace automatically from the server

Thank you very much for your help regarding this matter.

Have a nice day to all




Visual FoxPro2  
 
 
dni





PostPosted: Visual FoxPro General, how could I change the Client's IP address automatically Top

You may manage the ip addres via winsock control,(MSWinsck.ocx(ole class MSWinsock.Winsock.1)).


 
 
Madix_t





PostPosted: Visual FoxPro General, how could I change the Client's IP address automatically Top

thanks a lot that's how i manage the client pc's program through MSWinsock, but configuring the ip automatically on target pc is what i wanted to know how to do it.

just like the client's system clock which can be synchronize from the server system clock, which the code i got from this forum a few months ago, it works fine

thank you very much...



 
 
dni





PostPosted: Visual FoxPro General, how could I change the Client's IP address automatically Top

Usually, if the client changes his ip address, (in standard networks) he will not have access to server resources.

I don't understand why do you need vfp to do this.You can do that from your network settings may be, or your network management software, you ca "simulate" dhcp.... If you like to use vfp for that it takes some time to develop a code, only if someone has something "ready made"...



 
 
Madix_t





PostPosted: Visual FoxPro General, how could I change the Client's IP address automatically Top

"I don't understand why do you need vfp to do this."

Yeah because i love my VFP in controlling my network...with my VFP program, i use to shutdown, restart, send message, sychronize time, compute time usage, view client pc's desktop, kickout's P.O.S. cash drawer at client PC, and so on and so fort...now i am thinking, can i also change the IP automatically from the server ...that is why i am asking some help from the experts maybe even a little idea which i can experiment tell i can achieve what is in my mind to show that VFP is not just for RDBMS only.



 
 
dni





PostPosted: Visual FoxPro General, how could I change the Client's IP address automatically Top

OK, I will think at some code and I will post it, but will take some time...