How to directly connect 2 computers - No router, no DHCP?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware, Linux from Scratch, Ubuntu
Posts: 24
Rep:
How to directly connect 2 computers - No router, no DHCP?
I am trying to network 2 computers directly to each other. (i.e. the network cable is plugged directly from one NIC to the other.) I'm trying to run one of the machines as an FTP server. These are the only network connections either machine has; neither is connected to the internet or to a router or something like that. Since there's no DHCP I've been assigning the IP addresses manually (using ifconfig), but I can't access the FTP server remotely. NMap replies that all 1000 ports on the opposite machine are filtered. Neither machine can ping the other.
Both computers run XP normally (Slax is a LiveCD), so I tried booting into Windows. In Windows, both machines can ping each other (so I know that the cable and both NICs work.)
I am not sure exactly what to do here. But I know there are different ways to set up a peer to peer network
I think the easiest could be is to use a cross over cable for a simple peer to peer connection.
" A Cross Over cable is a special Ethernet cable with the sending and receiving wires switched on opposite ends. When two computers are connected with this cable in the normal RJ45 port, you have the ability to create a local workgroup style network between the two machines. This of course is not a replacement for a normal network connection, but can be a great way to 'hop' large files between two machines.
" http://www.razertech.com/edge/hardwa.../crossover.htm
I hope this can help. =)
Also try configuring the host file and make sure the ports / services are enabled for FTP.
/etc/inetd.conf (I think that's the location).
Last edited by ferensick; 08-07-2009 at 12:42 PM.
Reason: addendum
Purchase (or make it yourself if you've got the tools) a "crossover" Ethernet cable. They are usually less than $10, and they act as like a "single port" switch.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.