You are not logged in.

#1 2024-06-14 22:45:51

redshoe
Member
Registered: 2015-12-16
Posts: 250

[Sol.] How to transfer files in between two PCs using crossover cable

What I want to achieve is to transfer files in between two PCs using crossover LAN cable. The thing is that both have wireless card which is connected to a router for internet access. Ethernet card are not being used. I just would like to transfer files time to time within this independent small network of two PCs. How can I do this? If so, what application can I use for this? I also would like to set the IP, not use DHCP. Thanks.

Last edited by redshoe (2024-06-16 02:20:23)

Offline

#2 2024-06-14 23:04:01

cryptearth
Member
Registered: 2024-02-03
Posts: 1,338

Re: [Sol.] How to transfer files in between two PCs using crossover cable

cross-over cables are a thing of the past since 1gbit NICs all implement auto mdi-x
a cross-over is only needed between two 10/100 mbit nics whitout auto-mdix and without a hub or router in between

Offline

#3 2024-06-15 01:54:23

redshoe
Member
Registered: 2015-12-16
Posts: 250

Re: [Sol.] How to transfer files in between two PCs using crossover cable

cryptearth wrote:

cross-over cables are a thing of the past since 1gbit NICs all implement auto mdi-x
a cross-over is only needed between two 10/100 mbit nics whitout auto-mdix and without a hub or router in between

Okay. Cool. So, I don't have to use crossover cable for 1 Gb (or faster) ethernet?

Do you know what I should do once two computers are connected with normal LAN cable?

Thanks.

Offline

#4 2024-06-15 07:09:30

seth
Member
Registered: 2012-09-03
Posts: 61,651

Re: [Sol.] How to transfer files in between two PCs using crossover cable

You bring up the NICs, assign static IPs and set the route accordingly so the system knows where to send those packages.
https://wiki.archlinux.org/title/Networ … ion#Manual

ethtool will tell you whether you've MDI-X

Offline

#5 2024-06-15 13:34:37

cryptearth
Member
Registered: 2024-02-03
Posts: 1,338

Re: [Sol.] How to transfer files in between two PCs using crossover cable

Is manual set route tables required if both nics set to thr same /24 subnet? The kernel should add a default by itself.

Offline

#6 2024-06-15 13:35:51

seth
Member
Registered: 2012-09-03
Posts: 61,651

Re: [Sol.] How to transfer files in between two PCs using crossover cable

The default route will likely be the wifi NIC?

Offline

#7 2024-06-15 13:39:09

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,355

Re: [Sol.] How to transfer files in between two PCs using crossover cable

One should probably use a different subnet for the static wired line than the one used for the WiFi.  The gateway for the static wired network is unimportant as there is none.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2024-06-15 13:47:12

redshoe
Member
Registered: 2015-12-16
Posts: 250

Re: [Sol.] How to transfer files in between two PCs using crossover cable

I understand I can set the IPs manually for both machines. How do I transfer files once that procedure is done?

Offline

#9 2024-06-15 13:51:06

seth
Member
Registered: 2012-09-03
Posts: 61,651

Re: [Sol.] How to transfer files in between two PCs using crossover cable

ftp? sftp? a http server? icecast? dlna? smb? nfs?

Offline

#10 2024-06-15 13:53:10

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,355

Re: [Sol.] How to transfer files in between two PCs using crossover cable

seth wrote:

ftp? sftp? a http server? icecast? dlna? smb? nfs?

rsync? rcp?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#11 2024-06-15 15:08:27

redshoe
Member
Registered: 2015-12-16
Posts: 250

Re: [Sol.] How to transfer files in between two PCs using crossover cable

Ahh. Okay. Thanks.

Offline

#12 2024-06-15 15:32:53

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [Sol.] How to transfer files in between two PCs using crossover cable

ewaller wrote:
seth wrote:

ftp? sftp? a http server? icecast? dlna? smb? nfs?

rsync? rcp?

Netcat?

Offline

#13 2024-06-15 17:07:24

xerxes_
Member
Registered: 2018-04-29
Posts: 885

Re: [Sol.] How to transfer files in between two PCs using crossover cable

Awebb wrote:
ewaller wrote:
seth wrote:

ftp? sftp? a http server? icecast? dlna? smb? nfs?

rsync? rcp?

Netcat?

python -m http.server?

Offline

#14 2024-06-15 19:18:10

cryptearth
Member
Registered: 2024-02-03
Posts: 1,338

Re: [Sol.] How to transfer files in between two PCs using crossover cable

#include <sys/socket.h>
socket(AF_INET, SOCK_STREAM, 0);

redshoe wrote:

I understand I can set the IPs manually for both machines. How do I transfer files once that procedure is done?

somehow this question sounds like just using an external drive would be the easier and faster way (as even gigabit ethernet is limited to 128mbyte/s (which is just the baudrate (line symbols) - which uses 8/10 encoding so the actual net data rate is around 100mbyte/s) - any usb3 with 5gbit/s and up is way faster

Last edited by cryptearth (2024-06-15 19:46:20)

Offline

#15 2024-06-15 20:10:52

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [Sol.] How to transfer files in between two PCs using crossover cable

cryptearth wrote:

somehow this question sounds like just using an external drive would be the easier and faster way (as even gigabit ethernet is limited to 128mbyte/s (which is just the baudrate (line symbols) - which uses 8/10 encoding so the actual net data rate is around 100mbyte/s) - any usb3 with 5gbit/s and up is way faster

That's not always practical. For example, I have a direct connection between my NAS and my desktop, so the desktop transcoding video files doesn't "clog up" the whole network.

Offline

#16 2024-06-16 02:20:08

redshoe
Member
Registered: 2015-12-16
Posts: 250

Re: [Sol.] How to transfer files in between two PCs using crossover cable

I'll mark it as solved. I do have some more detailed questions though which I think it would be posted separately. Thanks.

Offline

#17 2024-06-16 12:19:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,341
Website

Re: [Sol.] How to transfer files in between two PCs using crossover cable

HA ... I came here because I saw the title change and thought that it was S.O.L. as in shit out of luck and you had given up.

I'm not sure how many people's minds are as twisted as mine, but the few there are could perhaps be aided by a revision "[SOLVED] transfer files between two PCs using crossover cable".


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#18 2024-06-16 14:04:13

cryptearth
Member
Registered: 2024-02-03
Posts: 1,338

Re: [Sol.] How to transfer files in between two PCs using crossover cable

Awebb wrote:
cryptearth wrote:

somehow this question sounds like just using an external drive would be the easier and faster way (as even gigabit ethernet is limited to 128mbyte/s (which is just the baudrate (line symbols) - which uses 8/10 encoding so the actual net data rate is around 100mbyte/s) - any usb3 with 5gbit/s and up is way faster

That's not always practical. For example, I have a direct connection between my NAS and my desktop, so the desktop transcoding video files doesn't "clog up" the whole network.

Agreed - I've setup my network with all kind of convinence like pxe, both smb and nfs shares, http and database and all kind of weird stuff tinkered together over the years.
For most transfers the about 100mb/s of gigabit is fast enough or is limited otherwise like protocol overhead, slow drives or old slow system.
But if I work on a system not belong to my network, like a crashed system of one of my friends, I often just grab a prepared usb3 thumbdrive and a usb3 exteral drive as they're way easier and faster than setting up the system for one-time use in my network.
It depends on OPs use case and if it will become a permanent solution - but the question in itself "step 1: cable - step 2: ifconfig - step 3: now what?" hints to me lack of rquired knowledge - hence I suggested "the average joe solution".
//update
the follow-up threads somewhat confirm my thoughts: Instead of usibg a search to figure out how to do it OP now spams every single detail in a new thread - suggesting just to use an external drive was the better option

Last edited by cryptearth (2024-06-16 17:11:44)

Offline

Board footer

Powered by FluxBB