calling to a pre created dialup connection

Started by Melssj5, February 14, 2007, 10:00:52 PM

Previous topic - Next topic

Melssj5

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

cyberkilla

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

Melssj5

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


Melssj5

You found instantly what I couldnt on days. Thanks a lot, the rasdial command was what I needed.
Nada por ahora

cyberkilla

http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG