connect 2 PCs directly with a cable and transfer data

1

1

I have 2 laptops, both connected to the same wifi(ip looks like 10.xxx.xxx.xxx).
I want to transfer some files between them but I don't want to do it over wifi since it's slow(max 2M/s I guess). so I tried this:
I connected the 2 laptops with a cable.
On the 1st laptop, I setup the wired network adapter as this: IP 192.168.1.1 mask:255.255.255.0
On the 2nd laptop, I setup the wired network adapter as this: IP 192.168.1.2 mask:255.255.255.0
and they can ping each other using the address I just setup.
(Originally I wanted to use http to transfer files).But now I have given it up cause it's too complex. I tried shared folder instead.
here is the current situation:
On the 1st laptop:

ping 192.168.1.1  ------ OK!
ping 192.168.1.2  ------ OK! 
\\hostname-of-1st-laptop   -------- OK! all shared folders shown. 
\\192.168.1.1      -------- Network error! Here is what bugs me most, why doesn't this work?  

on the 2nd laptop:

ping 192.168.1.1  ------ OK! 
ping 192.168.1.2  ------ OK! 
run \\192.168.1.1 ------ Network error! 

David Dai

Posted 2013-05-13T05:13:59.707

Reputation: 2 833

How did you try to access the web server from the other and what went wrong when you tried? Your problem description comes down to telling us that it didn't work but not how you tried or what went wrong when you tried. – David Schwartz – 2013-05-13T07:26:31.667

Maybe firewall between the 2 laptops preventing shared folders visibility. Also, what OS is being used? (Windows 7/Linux/Mac?) Also connecting laptop with cable, directly or via a switch/hub? – Darius – 2013-05-13T09:30:48.563

Were you using a cross-over cable or a straight-through cable? Most modern NIC's should be able to auto-adjust to make it cross-over, but not all. – Kruug – 2013-05-13T18:56:55.920

I'm not sure what type of cable I'm using, but as long as the laptops can ping each other, I assume the cable works well. both win7. – David Dai – 2013-05-14T04:38:50.577

Answers

0

Assuming they are Windows Laptops you would be better off transferring files using the built in file sharing rather than worrying about web servers.

Here is a guide for Windows 7

http://windows.microsoft.com/en-au/windows7/file-sharing-essentials

Jaz005

Posted 2013-05-13T05:13:59.707

Reputation: 16

0

First of all, check if you are able to access your server from the host laptop. When you accessing it from second laptop, make sure you are using right IP and port. You can also use Wireshark to check requests/response on both laptops and find where is problem (problem could cause firewall).

But if you simply want to share files between computers, much better way would be using FTP server like FileZilla.

icl7126

Posted 2013-05-13T05:13:59.707

Reputation: 401

0

My method is a bit more hack-and-slash but I find it to be the quickest, access the network drive directly through C$ or D$ (or whatever your drive letter). E.g. \192.168.1.1\C$

It will prompt you for credentials, Username & Password (Sometimes you may need to specify the PC hostname as in pcname\username)

Then just drag and drop. I personally use TeraCopy because it optimizes the process but that's a personal preference.

Note:
It also appears you may be having a firewall issue, try disabling it and giving it another try. Though usually if that is the case, pings will fail. It doesn't hurt.

Will.Beninger

Posted 2013-05-13T05:13:59.707

Reputation: 1 402