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-02-2006, 11:52 PM   #1
Registered: May 2006
Posts: 50

Rep: Reputation: 15
CentOS+WinXP and Samba: connection failed

I have two PC's directly connected to each other with a crossover cable, one is a WinXP Home and the other is CentOS 4.2. They are into a simple file sharing network and their IP addresses are static, manually configured (have had problems with DHCP on both machines).
Although there are no warnings regarding connection on both machines, when I try to use samba on CentOS machine to connect to the win machine I get a response that the connection failed. Likewise, on the win machine in the My Network Places I don't see shares from CentOS machines.
What is to be done to make this system work?
Old 08-03-2006, 07:33 AM   #2
Registered: Jan 2003
Location: AU
Distribution: Whatever - mainly Red Hat
Posts: 32

Rep: Reputation: 15
Um - not much info to go on. You could tell us how you are trying to connect? like have you edited smb.conf? What commands have you tried. What did you do when it said connection failed. Can you ping the other machine? Are you running any firewalls? Is any of the machines running a DHCP server so you get an DHCP assigned address. And anything else you have tried?

This might help you though

How to connect to a XP share from linux if the share is called 'dashare' and your username is 'whatthe' your password is blank, the workgroup is 'WRKGRP' and the XP ip is

1. make a directory to mount the windows share.
mkdir /mnt/dashare

2. The command to mount the windows share to /mnt/dashare:
mount -t smbfs -o username=whatthe,password=,workgroup=WRKGRP // /mnt/dashare

3. View the share
cd /mnt/dashare
ls -las

To share a folder to windows read /etc/samba/smb.conf
and then ask if you get stuck on any of it.

are you trying to connect by hostname or ip address only, If you cant ping by hostmane edit your /etc/hosts to reflect that.
If Xp is called PoopOS then in the /etc/hosts file have a line: [TAB] PoopOS

the [TAB] indicates a Tab, don't type [TAB] into the line ;-)

Last edited by friskydrifter; 08-03-2006 at 07:49 AM.


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
SAMBA connection failed masterlodi Linux - Networking 2 03-13-2005 07:24 AM
online_update failed - ERROR(Media:connection failed)[Connect failed] rover SUSE / openSUSE 8 02-22-2005 07:57 AM
iptables blocking samba connection to WinXP QClown Linux - Networking 15 01-30-2005 04:01 PM
Connection to LOCALHOST failed when I try to browse the LAN in Samba jeffcheng Linux - Networking 0 09-21-2004 06:55 AM
Trouble getting a connection with Samba and WinXP Zombfyed Linux - Networking 2 12-16-2002 07:22 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:32 PM.

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