I connected two ubuntu laptops with an RJ45 cable directly and could login from one system to another and transferred files. This procedure is for linux systems. It may works in windows also. Basic concept is same. The network settings has to be changed in network properties.
Linux
The steps:
- Login in both systems and change the IP settings.
- On the first system, open a terminal and run sudo ifconfig eth0 192.168.1.175 netmask 255.255.255.0 broadcast 192.168.1.255
- In the second system run sudo ifconfig eth0 192.168.1.176 netmask 255.255.255.0 broadcast 192.168.1.255
- That is it, now from the first system sudo ssh username@192.168.1.176 and give the password. You might be logged in. Replace the 'username' with your userID.
sudo is not required for root user.
The important thing to take care is to keep the netmask and broadcast adddress of both the PCs same to have them under the same network. And IP should be different. (Better change only the last number - 176,175 )
All other kind of login such as FTP, HTTP, etc.. might be possible.
Windows
Windows
To do the same with windows ( This is for Windows 7, might work on other versions of windows, just update the 'local area connection' properties ),
- go to Control panel > Network and Internet > Network Connections
- Right click local area connection and select properties
- Double click on Internet Protocol Version 4 (TCP/IPv4)
- Select use the following address and update with
- IP: 192.168.1.175
- Subnet: 255.25.25.0
- Gateway: 192.168.1.255
- Now both the systems are on same network.
- To transfer data between the two systems any application which connects via TCP/IP network can be used. (apache server, ssh, ftp server, etc..)
- Eg: if apache server is running on one system. This can be accessed from the next system.