sending data between 2 computers connected by telephone line

I need to receive data from another computer sent 2 me by modem, and I receive it by modem and send data back (not passing threw the net or using ip's).how can I do this ?Thanks
[206 byte] By [atrio] at [2007-9-26 2:21:43]
# 1

Maybe you can communicate to the serial port where the modem is connected and send commands.

Check this api's:

http://java.sun.com/products/javacomm/index.html

I know you don't want to use IP's but if you are using windows you can accept calls so one computer can dial to other computer and can establish communications using TCP/IP throug modem (without internet) and then you can use sockets in java

jpob77 at 2007-6-29 9:27:20 > top of Java-index,Archived Forums,Java Programming...
# 2

hi Jpob77 and all,

Can you explain the solution using TCP/IP more clearly.

if we establish a connection between 2 modem successful by app or hyperTerminal then the COM port would be appropriated, so i can't write any data to this port to take a communication, is that right?

Pls show me any your opinion about this.

Thanks for your cooperation.

diennt879 at 2007-6-29 9:27:20 > top of Java-index,Archived Forums,Java Programming...