Author Topic: calling to a pre created dialup connection  (Read 6857 times)

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
calling to a pre created dialup connection
« on: February 14, 2007, 10:00:52 pm »
Hi, I hope anyone can help me, I need to began an internet connection from my java app. What I need this because my app asumes that not everyone has a 24/7 connection, so based on a Schedule on certain times I need to send some data and close the connection when finished. How can I do that.

The dial up connection is already done and has on it the username and the password.
Nada por ahora

Offline cyberkilla

  • float
  • ****
  • Posts: 413
    • View Profile
    • http://futurerp.net
calling to a pre created dialup connection
« Reply #1 on: February 14, 2007, 10:18:24 pm »
Ive never tried it, but id assume it would involve launching external executables,  and not pure java.
Since this doesnt sound like a common problem, i dont think it would be part of any api.

In windows, with dialup, the os generally attempts to connect automatically, and disconnect after inactivity.

Im sure its possible though. Dont listen to me too seriously, its just my take on the situation;)
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
calling to a pre created dialup connection
« Reply #2 on: February 14, 2007, 10:21:09 pm »
Ok, I also think that is not easy with pure java. Anyone knows how to do it with a batch, basic or any other way to call it with exec.
Nada por ahora


Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
calling to a pre created dialup connection
« Reply #4 on: February 14, 2007, 10:38:04 pm »
You found instantly what I couldnt on days. Thanks a lot, the rasdial command was what I needed.
Nada por ahora

Offline cyberkilla

  • float
  • ****
  • Posts: 413
    • View Profile
    • http://futurerp.net
calling to a pre created dialup connection
« Reply #5 on: February 14, 2007, 10:43:27 pm »
no problem:)
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG