www.jpct.net

General => Feedback => Topic started by: Melssj5 on February 14, 2007, 10:00:52 pm

Title: calling to a pre created dialup connection
Post by: Melssj5 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.
Title: calling to a pre created dialup connection
Post by: cyberkilla 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;)
Title: calling to a pre created dialup connection
Post by: Melssj5 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.
Title: calling to a pre created dialup connection
Post by: cyberkilla on February 14, 2007, 10:26:56 pm
http://209.85.135.104/search?q=cache:jRwH0HsckrEJ:forum.java.sun.com/thread.jspa%3FthreadID%3D698116%26messageID%3D4251513+java+dialup+connect+disconnect&hl=en&ct=clnk&cd=1&gl=uk&client=firefox-a
Title: calling to a pre created dialup connection
Post by: Melssj5 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.
Title: calling to a pre created dialup connection
Post by: cyberkilla on February 14, 2007, 10:43:27 pm
no problem:)