Wednesday, July 8, 2009

Transferring files over LAN - Part 2

Sorry, I had written in my previous post that I'll get back with the 2nd part of this tutorial tomorrow, but didn't actually get time. But now I'm free and here's the 2nd part that will show you the merits of client/server technology and TCP/IP protocol stack.
This one has one additional requirement and thats Apache Server Software. You may download it by clicking here.
Install it in the computer from which you want to serve the file to other one. Installation is quite easy. If you've some confusion in what values are to be filled in which boxes, then use these values:

Network Domain: localhost
Server Name: localhost
Admin Email: any email address

And check the box labelled: for All Users, on Port 80, as a Service

Ok, now you've installed Apache, lets make sure whether it is working correctly or not.
Open any browser window and type localhost in the address bar and press enter. If you see a white page with "It works!" written in large black font, that means you've done it succesfully!!!
But if not, then refer to the official documentation here or an unofficial nice one here.

Ok, so now we've finished installing the server software. Now lets proceed ahead and configure our LAN.

1. Follow the first two steps of the previous blog post i.e.
2. Now in the server computer i.e. the one with Apache, right click your ethernet card in Network Connections, click Properties. In the box under "This connection uses following items", click Internet Protocol(TCP/IP) and click Properties command button below.
3. Now check the radio button that says "Use the following IP address" and enter in the box, press "Tab" key on your keyboard, and the next Subnet Mask box will automatically be filled with Now click ok and close.
4. In the client computer do the same but put the IP address as
5. Now navigate to the apache installation directory's htdocs folder and delete the index.htm or index.html files.
6. Copy the files you want to share, to this directory.
7. In the client computer open a web browser(I don't recommend IE!!!, use Opera or Firefox), and type in the address bar and press enter. Viola!!! You can see the files that you copied to htdocs folder in the server computer. Just click any of it to start the download. You will get download speeds around 80Mbps i.e. around 10MB/s.

Here are some images to help you if you get stuck somewhere.

Sunday, July 5, 2009

Transferring files from one computer to another over LAN

Many of my friends who're not directly connected to computers have asked me ways to share files between two computers. For most of them I've done that myself physically and for others, for whom my physical presence isn't feasible, I'm posting this one.
I'm assuming you've Windows XP running on both the computers and drivers for LAN cards are installed.

Additional Requirements: A CAT-5 Ethernet Crossover Cable(thats technical name, common name is LAN wire cross waala)

I will discuss two ways to do the same. One is a primitive simple way to share files. Other one is a bit geeky, and you'll probably feel proud of yourself doing that :)

Ok, so simpler one first.

1. Insert both the ends of the cable's RJ45 connectors to both the PC's LAN ports.
2. Open "Network Connections" from Control Panel or from Start>Connect To>Show All Connections. There, in both the machines, make sure the ethernet cards under "LAN or High-Speed Internet" category are enabled. If not enabled then right click over the corresponding icon and click "Enabled"
3. Now in both the computers right click "My Computer" in start menu and click "Properties". In "Computer Name" tab, click the "Change" button. Now put different names for both computers and in the bottom below "Member of" label select the radio button labelled "Workgroup" and put any name there. But make sure this workgroup name should be same in both the computers. Now click ok. And restart both the computers.
4. After restarting, open "My Network Places". Oh, where is it??? lol if you can't find it, just open "My Computer" and in the left pane i.e. Tasks Pane you'll see "My Network Places" under "Other Places". Click that. In the tasks pane of "My Network Places" click "View workgroup computers" and you'll be able to see the other computer.
5. Ok, now they're networked. Ok? So how to transfer the files? Easy!!! In any computer right click any file/folder/drive which you want to share, click properties and in sharing tab enable sharing.m Thats it!!! You can see that file/folder/drive on the other computer when you double click this computer's name in its my network places. easily copy the files.

The other(geeky) method, I'll post tomorrow.
Here are some images.

Thats a caT-5 cable with Rj45 connectors on both ends.

For the second part of this tutorial GO HERE