Cannot connect to WinXP PC in the same workgroup for shared folders (Lucid Lynx)

Asked by Fabio

My network is composed of:
1. a desktop PC with Windows WP Pro SP2 sharing 2 folders (with Windows simple sharing). Workgroup = HFWGRP. It connects to the internet through the router via a ethernet cable. Computer name: homepc, IP: 192.168.0.13
2. a laptop with dual boot:
    - Win XP Pro SP2, workgroup = HFWGRP, computer name = laptop
    - Ubuntu 10.04, in /etc/samba/smb.conf: workgroup = HFWGRP netbios name = LAPTOP
   The laptop connects to the internet through the router via a wireless network. IP: 192.168.0.14
3. an ADSL modem/router: it centralises the network connections (ethernet and wireless) and is the DHCP server, as well. For now, the DHCP is configured so that laptop and desktop PC get always the same IP adresses.

An image maybe will make it clearer: http://pix.toile-libre.org/?img=1282733511.png

When I boot the laptop in Linux:
- each computer can ping the IP adress of the other
- to be able to use the netbios names, I added a mapping between the names and their IP adresses in the /etc/hosts file (both in the desktop and the laptop). I can now do "ping homepc" from the laptop and it works correctly.
Ubuntu's /etc/hosts:
127.0.0.1 localhost
127.0.1.1 laptop
192.168.0.13 homepc

- when I go to Places -> Network, Windows Network does not contain anything, while I expected to find the workgroup HFWGRP and inside it the desktop PC
- if I try Places -> Connect to Server, choose Windows Share and type the IP adress of the desktop PC I have an error saying: "Cannot display location "smb://192.168.0.13/". Failed to retrieve share list from server". Specifying the name of the share does not change the result.

When I boot the laptop in WinXP I can correctly find the workgroup, the desktop PC and its shared folders in My Network places -> Entire Network -> Microsoft Windows Network. Nothing is changed in the other elements of the network when I switch the laptop from Linux to Windows.

I would expect the laptop to be able to access the shared folders of the desktop PC in Ubuntu as well as it does in WinXP, but I must have missed something somewhere, but I haven't managed to find what in weeks of research...
Everything else on the laptop in Ubuntu works like a charm (I am using it to write all this, for example, connected to my wireless network) and connecting to the ADSL router with an ethernet cable does not change anything in my case.

I hope one of you will have the magic idea that can help me!

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu samba Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you press ALT+F2 and in the box type:

smb://homepcsharename

replace sharename with the name of the share you actually gave.

Does it show?

Revision history for this message
Fabio (steffan-fabio) said :
#2

Maybe you meant smb://homepc/sharename, but anyway I've just tried:
smb://homepc/share
smb://192.168.0.13/share
smb://homepcshare

...and unfortunately none of them works.
Thanks for your interest in my case!

>----Messaggio originale----
>Da: <email address hidden>
>Data: 25/08/2010 18.36
>A: <email address hidden>
>Ogg: Re: [Question #122682]: Cannot connect to WinXP PC in the same workgroup
for shared folders (Lucid Lynx)
>
>Your question #122682 on Ubuntu changed:
>https://answers.launchpad.net/ubuntu/+question/122682
>
> Status: Open => Needs information
>
>actionparsnip requested for more information:
>Can you press ALT+F2 and in the box type:
>
>smb://homepcsharename
>
>replace sharename with the name of the share you actually gave.
>
>Does it show?
>
>--
>To answer this request for more information, you can either reply to
>this email or enter your reply at the following page:
>https://answers.launchpad.net/ubuntu/+question/122682
>
>You received this question notification because you are a direct
>subscriber of the question.
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

is the share clled "share" ?

What is the output of:

smbtree

Thanks

Revision history for this message
Fabio (steffan-fabio) said :
#4

Hi,
No, the share is called D_Stuff, I just put share to be clearer (but maybe I
was not, sorry ;-) ). Of course, in the smb adresse I put D_Stuff, and not
"share".

As for smbtree, here it is:

smbtree
Enter fabio's password:
HFWGRP
 \\LAPTOP laptop server (Samba on nmbd, Ubuntu)
  \\LAPTOP\IPC$ IPC Service (laptop server (Samba on laptop,
Ubuntu))
  \\LAPTOP\Share

Thanks again for your time!

>----Messaggio originale----
>Da: <email address hidden>
>Data: 26/08/2010 15.19
>A: <email address hidden>
>Ogg: Re: R: Re: [Question #122682]: Cannot connect to WinXP PC in the same
workgroup for shared folders (Lucid Lynx)
>
>Your question #122682 on samba in ubuntu changed:
>https://answers.launchpad.net/ubuntu/+source/samba/+question/122682
>
> Status: Open => Needs information
>
>actionparsnip requested for more information:
>is the share clled "share" ?
>
>What is the output of:
>
>smbtree
>
>Thanks
>
>--
>To answer this request for more information, you can either reply to
>this email or enter your reply at the following page:
>https://answers.launchpad.net/ubuntu/+source/samba/+question/122682
>
>You received this question notification because you are a direct
>subscriber of the question.
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

ok so you can see the share. Are the shares the ones listed on the server??

Revision history for this message
Fabio (steffan-fabio) said :
#6

No, those are shares from my Linux laptop to my Windows desktop PC (well,
actually just one of them is: I don't know what IPC is).
My desktop PC cannot see them either, but the problem I contacted you for is
that I can't access from my Linux laptop the folders shared by my WinXP desktop
PC.

In the smbtree result, I see no trace of my WinXP machine (and its shares).

Just for information, as I needed to access those windows folders, I have now
set up an FTP server on the WinXP desktop PC and I can connect to it from the
Linux laptop: not the most elegant solution, but I'll try and make it be enough
for now.

>----Messaggio originale----
>Da: <email address hidden>
>Data: 26/08/2010 17.08
>A: <email address hidden>
>Ogg: Re: R: Re: R: Re: [Question #122682]: Cannot connect to WinXP PC in the
same workgroup for shared folders (Lucid Lynx)
>
>Your question #122682 on samba in ubuntu changed:
>https://answers.launchpad.net/ubuntu/+source/samba/+question/122682
>
> Status: Open => Needs information
>
>actionparsnip requested for more information:
>ok so you can see the share. Are the shares the ones listed on the
>server??
>
>--
>To answer this request for more information, you can either reply to
>this email or enter your reply at the following page:
>https://answers.launchpad.net/ubuntu/+source/samba/+question/122682
>
>You received this question notification because you are a direct
>subscriber of the question.
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

I suggest you use the advanced sharing and set a username to the share, make sure the account has a password as well as appropriate access to the share. You can then authenticate as that user. You can tell Ubuntu to remember the account details for the share.

Can you help with this problem?

Provide an answer of your own, or ask Fabio for more information if necessary.

To post a message you must log in.