Dialup Connection with Windows RAS (win32ras)

Example for connect to Internet via Modem, ISDN, ADSL, …

import win32ras

# Dialup with a RAS entry
win32ras.Dial (
    None, 
    None, 
    ("windows_ras_entry_name", "", "", "username", "password", ""), 
    None
  )

# Hangup the connection
win32ras.HangUp ()

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.