Configuring a VPN Tunnel through vb.Net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Maes

    Configuring a VPN Tunnel through vb.Net

    Hello,

    Is it possible to set up a VPN Tunnel (PPTP) by code (vb.Net) in a Windows Application?
    The idea is to (under certain conditions) connect to a VPN without the user having to explicitly make that connection.

    Invoking the connection through a shortcut isn't what I'm looking for (System.Diagnos tics.Process.St art("connection .lnk")).

    Thanks for any suggestions,


    Michael

    I'm using vs.Net 2003 Ent. Arch.
  • Peter Huang

    #2
    RE: Configuring a VPN Tunnel through vb.Net

    Hi Michael,

    Thank you for using MSDN Newsgroup! My name is Peter, and I will be
    assisting you on this issue.

    Based on my understanding, you wants to establish the PPTP connection by
    programming. I think you may try to use the RasDial API.

    Here is a sample for C#. I did not make a test, you may have a try.


    You may also take a look at the link below.

    5cDHA.2372%40TK 2MSFTNGP09.phx. gbl&rnum=1&prev =/groups%3Fq%3DRa sDial%2B%2522v
    b.net%2522%26hl %3Den%26lr%3D%2 6ie%3DUTF-8%26oe%3DUTF-8%26selm%3D%252 3oMcRi5c
    DHA.2372%2540TK 2MSFTNGP09.phx. gbl%26rnum%3D1

    Thank you for your patience and cooperation. If you have any questions or
    concerns, please feel free to post it in the group. I am standing by to be
    of assistance.

    Regards,
    Peter Huang
    Microsoft Online Partner Support
    Get Secure! www.microsoft.com/security
    This posting is provided "as is" with no warranties and confers no rights.

    Comment

    • Michael Maes

      #3
      Re: Configuring a VPN Tunnel through vb.Net

      Thanks Peter, I'll dig it through. Looks like there's alot of usefull stuff
      there.

      Michael

      "Peter Huang" <v-phuang@online.m icrosoft.com> wrote in message
      news:UIDcgFm2DH A.3564@cpmsftng xa07.phx.gbl...
      | Hi Michael,
      |
      | Thank you for using MSDN Newsgroup! My name is Peter, and I will be
      | assisting you on this issue.
      |
      | Based on my understanding, you wants to establish the PPTP connection by
      | programming. I think you may try to use the RasDial API.
      |
      | Here is a sample for C#. I did not make a test, you may have a try.
      | http://www.codeproject.com/useritems...ras#xx415375xx
      |
      | You may also take a look at the link below.
      |

      |
      5cDHA.2372%40TK 2MSFTNGP09.phx. gbl&rnum=1&prev =/groups%3Fq%3DRa sDial%2B%2522v
      |
      b.net%2522%26hl %3Den%26lr%3D%2 6ie%3DUTF-8%26oe%3DUTF-8%26selm%3D%252 3oMcRi5c
      | DHA.2372%2540TK 2MSFTNGP09.phx. gbl%26rnum%3D1
      |
      | Thank you for your patience and cooperation. If you have any questions or
      | concerns, please feel free to post it in the group. I am standing by to be
      | of assistance.
      |
      | Regards,
      | Peter Huang
      | Microsoft Online Partner Support
      | Get Secure! www.microsoft.com/security
      | This posting is provided "as is" with no warranties and confers no rights.
      |


      Comment

      • Peter Huang

        #4
        Re: Configuring a VPN Tunnel through vb.Net

        Hi Micheal,

        Thank you for your reply.

        If you have any concern on this issue, please post here.

        Regards,
        Peter Huang
        Microsoft Online Partner Support
        Get Secure! www.microsoft.com/security
        This posting is provided "as is" with no warranties and confers no rights.

        Comment

        Working...