Results 1 to 7 of 7

Thread: Disconnecting network connection and reconnecting

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2009
    Posts
    20

    Disconnecting network connection and reconnecting

    Hi guys

    I have a USB 3G dongle from Orange which is like a dialup connection, rather than a wireless connection.

    Is there anyway in vb.net to control this connection? So disconnect is and recconnect it etc?

    The reason for this is automatically getting a new ip address without manually disconnecting in network connections.

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: Disconnecting network connection and reconnecting

    You can run ipconfig /release to release the current ip and then run ipconfig /renew to renew the ip address. However, you may still get the same ip address each time.
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2009
    Posts
    20

    Re: Disconnecting network connection and reconnecting

    good idea, ill try it

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jul 2009
    Posts
    20

    Re: Disconnecting network connection and reconnecting

    i tried it but i require elevation, i forgot about that. Im using windows vista.

    How can i run a shell as administrator?

  5. #5
    Addicted Member
    Join Date
    Apr 2011
    Posts
    223

    Re: Disconnecting network connection and reconnecting

    Look at the command "runas".

  6. #6
    Banned
    Join Date
    Mar 2009
    Posts
    764

    Re: Disconnecting network connection and reconnecting

    don't you log in windows as administrator ?
    also you could run a macro

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Jul 2009
    Posts
    20

    Re: Disconnecting network connection and reconnecting

    i did look at runas but cant work it out.

    currently im just right clicking on the exe and running as admin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width