LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-07-2009, 12:26 PM   #1
GuyWhoKilledBear
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, 12:37 PM   #2
ferensick
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.
"
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
 
Old 08-07-2009, 12:41 PM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

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


Reply



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 01:16 AM
Ubuntu can see my router, but can't connect possible DHCP issue tc10b Linux - Wireless Networking 11 11-13-2006 10: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 04:44 AM
Non-DHCP connect on a Linksys WRT54G router Zyk Linux - Wireless Networking 1 07-11-2005 05:13 PM
Connect multiple computers behind a broadband router timyaukey Linux - Networking 4 07-03-2004 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:16 AM.

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