next up previous contents
Next: 4 Connecting a PC Up: IrDA, TCP/IP over IrDA, Previous: 2.5 Checking the infrared   Índice General


3 Connecting two PCs with TCP/IP over IrDA

It is very easy to connect two PCs with TCP/IP over IrDA. We need to load the modules and put the dongles in front of each one.

First, we have to verify we have the following options in our kernel (as modules or included into the kernel):

Then, we run the next command in PC1:

pppd /dev/irnet 9600 local noauth dirIPpc1:dirIPpc2

And the following in PC2:

pppd /dev/irnet 9600 local noauth dirIPpc2:dirIPpc1

You have to change dirIPpc1 and dirIPpc2 for the PC1's IP address and PC2's IP address.

When you execute these commands, they should create a network device in PC1 and PC2 called ppp with the specified IP address. The 9600 parameter means the connection speed. You can change this value to a higher value (perhaps 115200).

Now we have a TCP/IP connection between two PCs over infrared devices. You can test with ping, ssh and http connections, ...


next up previous contents
Next: 4 Connecting a PC Up: IrDA, TCP/IP over IrDA, Previous: 2.5 Checking the infrared   Índice General
Diego Chaparro 2002-01-29