Solved

Disconnect RAS connection

Posted on 2004-04-02
4
367 Views
Last Modified: 2011-10-03
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
0
Comment
Question by:mlandsitel
4 Comments
 
LVL 7

Accepted Solution

by:
Chatable earned 250 total points
ID: 10743522
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 ]
0
 

Expert Comment

by:shenry1307
ID: 10791061
If using multiple COMx ports, the easiest way I know of is to redirect the "hangup" command to that port.

Example:
======

You have a modem using COM1 ...

C:\>echo ATH > COM1

This can be easily scripted.

Good luck.
0

Featured Post

Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now