Solved

Disconnect RAS connection

Posted on 2004-04-02
4
355 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
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MAC Needs 2 Domains 2 42
IPhone using PC internet 17 45
Trying to make SNMP connection work 7 40
network timeout on mapped drive 3 25
What is IRC? IRC (Internet Relay Chat) is a form of communication between multiple users. It is available freely to anyone with inernet access. IRC is a great way to communicate with others e.g. There is an IRC channel for Ubuntu Linux, which is fo…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 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

10 Experts available now in Live!

Get 1:1 Help Now