Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-07-2009, 01:26 PM   #1
LQ Newbie
Registered: Nov 2006
Distribution: Slackware, Linux from Scratch, Ubuntu
Posts: 24

Rep: Reputation: 16
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.)

Does anyone have any advice?
Old 08-07-2009, 01:37 PM   #2
LQ Newbie
Registered: Sep 2008
Posts: 4

Rep: Reputation: 0
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.

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 01:42 PM. Reason: addendum
Old 08-07-2009, 01:41 PM   #3
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect 3 computers with router and crossover? Ynot Irucrem Linux - Networking 4 09-06-2007 02:16 AM
Ubuntu can see my router, but can't connect possible DHCP issue tc10b Linux - Wireless Networking 11 11-13-2006 11:05 AM
is it possible for 2 computers behind a router to talk directly or do i need vpn solusrex Linux - Networking 35 08-19-2006 05:44 AM
Non-DHCP connect on a Linksys WRT54G router Zyk Linux - Wireless Networking 1 07-11-2005 06:13 PM
Connect multiple computers behind a broadband router timyaukey Linux - Networking 4 07-03-2004 09:44 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration