Question : Disconnect RAS connection

Hello-
We have a dial-up ras server that user's use to synchronize a remote db. We are using a profile in Remote Access Policies in the Routing and Remote Access snap-in to disconnect the call if idle for 5 min. This works to disconnect users, but not on all modems. The 1st modem in the pool for example never will disconnect the user even if idle for hours. Any suggestions as to why this would happen or where the policy is being overwritten? thanks

Answer : Disconnect RAS connection

The Modem idle disconnect function disconnects your dial-up connection only if no traffic is sent whatsoever during the timeout period. If ANY traffic occurs during that time (like, somebody sends you a ping), the timeout is reset. Check to see if the 1st modem somehow receives some misdirected traffic etc.
In addition, why even count on the idle disconnect function if you can simply disconnect the connection yourself?
If you have access to the source code of the program that does the syncronization you can use the RasDial and RasHangUp API functions to automatically connect/disconnect the RAS connection. If you don't, you can simply create a batch file to connect, execute the syncronization program then immediately disconnect. The command "rasdial" is used to connect/disconnect.
If you didn't understand a word, here's a short example. Suppose you have a dialup connection named "internet".
C:\> rasdial internet
Command completed successfully.

[ You are now connected ]

C:\> rasdial internet /disconnect
Command completed successfully.

[ You are now disconnected ]
Random Solutions  
 
programming4us programming4us