Making a dialer for Dial-up connection using java.comm api

hi,

I have made a dialer program for dial-up connection using java.comm API. The program is working perfecly well upto the username and password entry. After that i dont know how to switch over to the PPP mode. If anybody knows about this pls give the source code for the same.

Thanx in advance

Harish Kumar

[339 byte] By [mharishkumar] at [2007-9-26 3:14:53]
# 1
Hi there,If possible can you send me a code example for the dialer. Any package info that you have used will also be fine.Regards,Ramakrishnan
ramkrishr at 2007-6-29 11:25:38 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2
If you get your dialup program up and running can you post the code?Thanks
ghaga at 2007-6-29 11:25:38 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 3
Try old school style before dialup networking was the thing send a String "PPP" over
ghaga at 2007-6-29 11:25:38 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 4

Hi

Even I have been working on almost a same project as mentioned by U. We have a working prototype ready for the javax.comm API. But still I think i would have to go thro ur code before actually saying where u missed out on the PPP code to be sent to the server.

Bye

Navin

navinkumarrai at 2007-6-29 11:25:38 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 5

Hi,

I also am coding a dialup program using the javax.comm api and I am trying to connect to an HP-UX server. The program is successful in dialing to the server but there is a problem in the validation of the password, garbage is returned after the password. Can you share a copy of your code?

Thank you very much!

ajangeles at 2007-6-29 11:25:38 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 6

Hi,

I also am coding a dialup program using the javax.comm api and I am trying to connect to an HP-UX server. The program is successful in dialing to the server but there is a problem in the validation of the password, garbage is returned after the password. Can you share a copy of your code?

Thank you very much!

ajangeles at 2007-6-29 11:25:38 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 7
Did u have a solution for dialing up using java.comm api.I have the same problem and will appreciate any help.
alexhawat at 2007-6-29 11:25:38 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 8
Hi,can you either post the code or send it to me?Thanks in advance,Katsi
katsi at 2007-6-29 11:25:38 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 9

I am working on a project that requires the server to dial into the client. I am new to this area and would like to have your guidelines on which area of Java that I should look into. I will perform research on the recommended area and may be having look at your code will help. Thank you.

yeefui1 at 2007-6-29 11:25:38 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 10
hi can you plz send me the code if possible it would be very helpfull ,post the code to this emailid:thatsananth@hotmail.com /myidleo0011@yahoo.com thanks yours friendlyananth
ananthja0011 at 2007-6-29 11:25:38 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 11

Hi Harish

I read your query regarding Java Dialer. I am also working on the same , using Java.Comm

As you have mentined , i don't know what to do after i dial and line goes busy after user and password authentication.

I you have solved the problem , kindly let me know about it .

Thanks and Regards

Vikrant

vikrantG at 2007-6-29 11:25:38 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 12
Harish Can you please if you are able to switch to ppp using javax.comm.radha@motorola.com
radhay at 2007-6-29 11:25:38 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 13
I also needed the dial-up source code too as i developing the an application that is using a dial-up application. CAn somebody plz..kindly email it to me ............. : swira@das.com.mythanx..All
wwiras at 2007-6-29 11:25:38 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 14
Hi,So did anyone send any code ? I am just about to do this and if anyone has some sample Dialler code... then please let me know...Thanks in advanceBryan
bmcdowel at 2007-6-29 11:25:38 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 15
Hi,I try to make a such class, but I have problem to connect to the provider :-(Can U please send me your code ?ThanxTom
ZeTom at 2007-7-1 3:34:11 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 16
you can use use this AT &F1DT9,P5551234&F1 restore factory settings
clugo at 2007-7-1 3:34:11 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 17
hi,can anybody send me the coding for telephone dialer. my email id is mdazeem@sify.com
mdazeem at 2007-7-1 3:34:11 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 18
hi,can anybody send me the coding for telephone dialer. my email id is mdazeem@sify.com
mdazeem at 2007-7-1 3:34:11 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 19
I am having the same problems. Please, could someone send a copy of the code?Thanks, best regards,Takeda.
JHTakeda at 2007-7-1 3:34:11 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 20
hi,can anybody send me the coding for telephone dialer. my email id is tamash63@hotmail.com
tamash63 at 2007-7-1 3:34:11 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 21
Can anybody send me an example of a dialer for Dial-up connection using javax.comm?My email is macalic@hotmail.comThanks in advance. macalic
macalic at 2007-7-1 3:34:11 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 22
I would also appreciate a copy of the example code. My email is jian1247@yahoo.co.ukThanksjian
jianda at 2007-7-1 3:34:11 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 23
i too need source code for making a dialer.if u got it send to me plz
javafornaga at 2007-7-1 3:34:11 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 24
i too need source code for making a dialer.if u got it send to me plz
javafornaga at 2007-7-1 3:34:11 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 25

PPP is a crude form of HDLC. It encapsulates IP packets. PPP uses two types of authentication - PAP and CHAP. Std CHAP uses MD5 encryption while M'soft uses Algorithm 80. If you are using COMM API I would investigate PPP Design reference books to explain the detail of the authentication - hopefully including a state diagram of the process.

Otherwise connect using a Std OS package then use sockets.

pwilliamsfam at 2007-7-1 3:34:11 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 26
Hi, Can U pl. send me the source code of the dialer and I'll try to improve upon it. acharyulug@rediffmail.com
acharyulug at 2007-7-1 3:34:11 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 27
If anyone has a code for making a dialer for Dial-up connection would you please email mexfarah@yahoo.comthanks
xfarah at 2007-7-1 3:34:11 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 28

Using javax.comm for ppp dialup is the wrong approach. You need to write jni interfaces to a shared library (written in C/C++) for your platform.

I've written shared libs for ppp connections on both Windoze and Linux, with standardized interfaces so my Java apps can be used unchanged on either platform (sorry, can't share them).

You need to wrap the standard Windoze RAS API, or, under Linux, write a wrapper for pppd/chat.

Java will automatically adhere to the shared lib naming conventions for the platform it's running on. E.g., if you load library "dialup", java will look for "dialup.dll" on Windoze, and "libdialup.so" on Linux.

chicks123 at 2007-7-1 3:34:11 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 29
Hi !!!You it could give tips to me to also implemet? Type as to use jni, and since you ja obtained, could arrange me documentation! I am thankful since already!
frogstomping2 at 2007-7-1 3:34:11 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 30

Hi Chicks123,

I am working on a project to create a dialer for accessing Internet. This customer can access the net through a simple click that takes in Username and Password. The application should then check the data cable connectivity and only then dial out. If the connectivity is not proper, an error msg should be shown

Once connected it should show a graphical display of the bytes received & transferred.

The application should run across all platforms windows & linux

I am pretty new to this area and would like to have some guidlines as to how this can be created.

Maybe some Whitepaper or documentation on how to proceed in order to achieve this.

Any information like reading material / sites etc which might be helpful can be forwarded to mario_c_noronha@yahoo.com

Thanking you in advance

mnrio at 2007-7-1 3:34:12 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 31
Hi. I am doing a project in which i need a simple Dialer Code in JAVA. This code should just extract a number from a variable String or Array of int type and dial that no automatically. My email address is: wardausmani@yahoo.com & warda_usmani@yahoo.com
sarahhussain at 2007-7-1 3:34:12 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 32
Hi I am working on a similar project . Did any one got the code. If so cld u pls mail me to it_kumargt@yahoo.com
it_kumar at 2007-7-1 3:34:12 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 33
could you please share your code?thanks.
JeanLedesma at 2007-7-1 3:34:12 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 34

Though platform dependent, you can use this, and make a workaround to make it platform dependent: (using scripts)

http://www.rgagnon.com/javadetails/java-0014.html

Here you have more information on how to create DUN scripts on msdos:

http://www.geocities.com/pablito128/index.html

The web is in spanish, but the tutorial is in english.

Good luck!!

oooh.oooh at 2007-7-1 3:34:12 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 35
Please do send me sample code so that i could work on that and improve that. nilanka_34@yahoo.com
Nilanka_34 at 2007-7-1 3:34:12 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 36
see http://www.jmethod.com they've got dial up api that could help you
alnik at 2007-7-1 3:34:12 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 37
hi,can anybody send me the coding for telephone dialer. my email id is rajiv_kasun@yahoo.com
rajiv_kasun at 2007-7-1 3:34:12 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 38

I am developing dialer for dial-Up connectionfor one of the call centerusing Java

please can u help in doing my job done . I saw in the Forum that java.comm api should be used in developing the project .

I need more help from all of you and your knowledge

thanks in advance

verdhan at 2007-7-1 3:34:12 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 39
Hi All,I urgently require the code for writing a Dialer for dial-up connection using java in my project.Please any one help me out in this...regardsPrakash
prakash@sundevforum at 2007-7-1 3:34:12 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 40
Hi everyone, I m trying to build dail-up connection using java, can any one send me example code. My e-mail id => divz_magic@rediffmail.comthnx all.
divz_magic at 2007-7-1 3:34:12 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 41
it is really amazing..... this topic contains 5 pages of replies... and most of the replies just asking for source code :Dit shows me that creating java API for PPP connection is truely a big market opportunity :D
rtery at 2007-7-1 3:34:12 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 42
Everything explained (especially look at the last page): http://java.sun.com/developer/Books/javaprogramming/cookbook/11.pdfLast page link: http://www.java2s.com/Code/Java/Network-Protocol/JModemsimplecommunicationsprogram.htm
lnxnt at 2007-7-1 3:34:13 > top of Java-index,Java Mobility Forums,Consumer and Commerce...