My topology is like this..
Server (PC) with 2 Network Connection
- 184.108.40.206 / Broadband Stick (Broadband / Internet Access)
- 192.168.5.101 (Local Network Connection / No Internet Access)
- 192.168.5.104 (Local Network Connection / No Internet Access)
I created a batch file running in the Client side that will ping the Server, particularly the IP Address 192.168.5.101. If it detects loss, it will turn offline (Java Program).
Same in Server, a batch file will ping to google.com (sample) to check if there is an internet connection. And if ever the reply is timed out or unreachable, the Local Network Connection IP Address (192.168.5.101) will be change using NETSH into (192.168.5.106) so that the Client will know that there is no Internet Connection (and it will turn offline).
The problem now here is that the changing of IP Address will take time and it will take more than 30 seconds for the Client to turn offline. Is there another way of doing this without changing the IP Address? If no, is there another way to speed up the changing of IP Address. Thank You.