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.
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;)
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.
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
You found instantly what I couldnt on days. Thanks a lot, the rasdial command was what I needed.
no problem:)