LinuxQuestions.org
Review your favorite Linux distribution.
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 11-14-2007, 09:35 PM   #1
abauer03
LQ Newbie
 
Registered: Nov 2007
Posts: 6

Rep: Reputation: 0
Can connect from WinXP to Ubuntu, but cannot connect from Ubuntu to XP


I know there have been some similar posts shedding some light on this topic, but I have honestly spend some considerable time browsing them and still they are of no help.


I'm a newbie to Ubuntu so please cope with my ignorances:

I have a Desktop Dell with Ubuntu 7.10 installed in it. I also have a Dell with Windows XP. They both connect to the Internet through a linksys router with DHCP. Naturally I wanted to integrate both of them, so that I could share reciprocally from one computer to the other.

So I installed and configured SAMBA and succeeded accessing my Ubuntu PC through my Windows XP with no problems. I also managed to share my printer with my Windows XP machine. HOWEVER, I have consistently failed to access my Windows XP through my Ubuntu.

I have seen many people with the following problem: When accessing Places/Network in Ubuntu and then Clicking the XP computer, they get this message: “The folder contents could not be displayed. Sorry, couldn't display all the contents of "Windows Network: laptop".

Most people have no problems accessing the XP computer by manually entering the ip (smb://192.168.1.102) in my case or smb://laptop. BUT, I cannot access it through neither of this methods; by ip or hostname, it just fails. Paradoxically, Ubuntu is recognizing the LAPTOP xp computer since it is displayed, as well as the MSHOME network.

So I then decided to ping my xp computer (LAPTOP) and its IP and received 0 packets, 100% loss.

Some say I should do 'smbtree' command for troubleshooting here are my results >

\\TORRECONLINUX torreconlinux server (Samba, Ubuntu)

\\TORRECONLINUX\hp hp

\\TORRECONLINUX\print$ Printer Drivers

\\TORRECONLINUX\abauer03

\\TORRECONLINUX\IPC$ IPC Service (torreconlinux server (Samba, Ubuntu))

\\LAPTOP LAPTOP

timeout connecting to 192.168.1.102:445



Where Torreconlinux is my Ubuntu comp and LAPTOP my Xp comp.

Some also say to enable Wins in the smb.conf, and I did – still no change. Why is it that the XP computer recognizes with no problem the Ubuntu computer but the Ubuntu fails to acesss the Xp computer.


Here is part of my smb.conf (please let me know if you need more) I doubt the problem lies in here though, but who knows

#======================= Global Settings =======================

[global]

workgroup = MSHOME


; wins server =


; name resolve order = lmhosts host wins bcast

; interfaces = 127.0.0.0/8 eth0


; bind interfaces only = true

BTW, I turned off my XP firewall just in case. BTW I already tried typing everything in wins server = so I decided to leave it blank.

I'm really running out of ideas, please help. Thanks in advance guys

Last edited by abauer03; 11-14-2007 at 10:06 PM. Reason: Adding smb.conf
 
Old 11-14-2007, 10:08 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
If you get no response when you ping the windows machine, it would appear the Firewall is still turned ON.

Until you can get it to respond to a ping request you certainly will never connect to a Shared folder on it..

Double check your Windows firewall settings are off, and if you have an integrated anti-virus / Internet security suite, ensure it has no firewall or that it is also turned off..
 
Old 11-14-2007, 10:15 PM   #3
abauer03
LQ Newbie
 
Registered: Nov 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Farslayer: Thanks for replying


I'm 100% the Firewall is off and I have no Antivirus integrated firewall just the windows one. Could it possibly be the Linksys internal router settings?!?! Do I need to open some ports or something like when Forwarding Ports to connect to DC++ or something like that?!?

Thing is Ubuntu does recognize the Computer, so there is some connection of some sort. The problem comes when I try to access the folder.


I appreciate your help!
 
Old 11-14-2007, 10:26 PM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Quote:
So I then decided to ping my xp computer (LAPTOP) and its IP and received 0 packets, 100% loss.
If the ping test is not successful, it is pointless to proceed with working on the file sharing until that issue is resolved.
If you can't get a ping response from the windows box you will never connect to a file share on it.
You must track down what is blocking the ping response on the windows machine.


If both PC's are plugged into the switch ports on the Linksys router, the router would NOT block any communication between the PC's so there are no ports that need configured/opened in the router configuration.

Last edited by farslayer; 11-14-2007 at 10:28 PM.
 
Old 11-14-2007, 10:46 PM   #5
anonobomber
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: Debian, Fedora, CentOS, FreeBSD, OpenSolaris
Posts: 138

Rep: Reputation: 16
try running 'nmap ipaddressofwindowssystemhere' from the linux system and see if you're able to see the port is open for connecting to your windows system.
 
Old 11-15-2007, 01:04 AM   #6
cyberfishee
Member
 
Registered: Mar 2005
Distribution: Debian Testing
Posts: 133

Rep: Reputation: 15
check your gateway setting on the Ubuntu box. It should point to the router.

I had a similar problem a while ago, and it was due to me forgetting to set the gateway ip (I used static ip).

Can you access the internet from the Ubuntu box?
 
Old 11-15-2007, 07:20 AM   #7
tesseractive
LQ Newbie
 
Registered: Dec 2004
Posts: 12

Rep: Reputation: 1
3 more diagnostics to try on the XP laptop

1) Boot the laptop in safe mode. Verify the IP address you get from the router. See if you can ping the laptop's IP from the ubuntu box.

2) Set the xp laptop to static IP (verify the gateway setting is correct per the last post -- that'll bite you in the backside every time...). DON'T forget to change back to DHCP after the test (assuming that's how it's setup now).

3) Boot the xp laptop with a copy of knoppix (knopper.net). Verify the IP address you get from the router, and see if you can ping from the ubuntu box.

Please post the results.
 
Old 11-15-2007, 12:50 PM   #8
bertie91
LQ Newbie
 
Registered: Sep 2006
Posts: 1

Rep: Reputation: 0
File and Folder Sharing

Are you sure that you have the folder you want to access set for "Sharing"?
 
Old 11-15-2007, 01:03 PM   #9
mrlinux11
LQ Newbie
 
Registered: Aug 2007
Posts: 12

Rep: Reputation: 0
What is the subnet mask of both boxes ????
Also what is the work group for both ??? They need to be the same.
 
Old 11-15-2007, 01:32 PM   #10
abauer03
LQ Newbie
 
Registered: Nov 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Response to posted diagnostics:

I want to thank everyone for their responses;here are the results of every suggestion made:

To narrow down the enigma, here is my main problem:

PING LAPTOP (192.168.1.101) 56(84) bytes of data.



--- LAPTOP ping statistics ---

12 packets transmitted, 0 received, 100% packet loss, time 10999ms


*I cannot ping my WinXP box and thus cannot access the shared folders on it. HOWEVER, I can access my ubuntu shares through XP(samba) as well as print through WinXP (the printer is on my Ubuntu box) Everyone please note I'm DHCP not static, so please avoid mixing up the static ip things(unless it solves the problem, lol)

Farslayer:
The WinXP box is wirelessly connected to the router; the Ubuntu box is plugged. In case this makes any difference

__________________

Anonobomber,

Here are my 'nmap' results:

Starting Nmap 4.20 ( http://insecure.org ) at 2007-11-15 15:09 AST

Note: Host seems down. If it is really up, but blocking our ping probes, try -P0

Nmap finished: 1 IP address (0 hosts up) scanned in 4.015 seconds

abauer03@torreconlinux:~$ nmap 192.168.1.101



Starting Nmap 4.20 ( http://insecure.org ) at 2007-11-15 15:10 AST

Note: Host seems down. If it is really up, but blocking our ping probes, try -P0

Nmap finished: 1 IP address (0 hosts up) scanned in 4.008 seconds

abauer03@torreconlinux:~$ nmap -P0 192.168.1.101



Starting Nmap 4.20 ( http://insecure.org ) at 2007-11-15 15:12 AST

Warning: Giving up on port early because retransmission cap hit.

caught SIGINT signal, cleaning up

abauer03@torreconlinux:~$ nmap LAPTOP


Starting Nmap 4.20 ( http://insecure.org ) at 2007-11-15 15:15 AST

Note: Host seems down. If it is really up, but blocking our ping probes, try -P0

Nmap finished: 1 IP address (0 hosts up) scanned in 7.027 seconds

abauer03@torreconlinux:~$




*I failed to see any ports, what could be the problem? BTW, what does the -P0 thing means?!?



Cyberfishee,

Though I don't know how to check the gateway setting in the Ubuntu box I assume it is correct since I can access the internet and moreover, I can share my printer with my winxp box and can connect from WinXP to Ubuntu flawlessl.


Tesseractive,
1.I booted in safe-mode, IP did not change. I failed to ping WinXP box from Ubuntu(both by IP and hostname)
2. How do I change the gateway setting in Ubuntu?!? Note everything else is working perfectly, so I assume the gateway is correct.
3. Regarding, knoppix (knopper.net) – This program seems to be only available for Unix(note my laptop is running WinXp) My desktop is running Ubuntu. Do you mean boot Ubuntu with knoppix??

Bertie91,

Yep 100% sure, I have plenty of folders set to 'share' in the XP box


MrLinux11,

Subnet mask in the XP comp is 255.255.255.0, I assume it is the same for Ubuntu box though I do not know how to look that up. The workgroup is MSHOME

Last edited by abauer03; 11-15-2007 at 01:37 PM. Reason: include dhcp explanation
 
Old 11-15-2007, 02:24 PM   #11
mrlinux11
LQ Newbie
 
Registered: Aug 2007
Posts: 12

Rep: Reputation: 0
For checking Linux's subnet mask.

From shell

ifconfig eth0

eth0=which ever network interface you are using.

It will list the subnet in the output.

Also both work groups are MSHOME ???
 
Old 11-15-2007, 02:54 PM   #12
kwill
Member
 
Registered: Jul 2007
Location: Horowhenua New Zealand
Distribution: (X)(K)ubuntu PCLinuxOS Mepis Puppy
Posts: 80

Rep: Reputation: 18
As you cannot ping the XP but can go the other way then it is almost certain that there is some sort of firewall still on the XP. Concentrate on that. the Ubuntu is obviously working correctly.

Try one of the portscanning programs on the XP to see what, if any, ports are open. No open ports then you will not be able to connect to it.
 
Old 11-15-2007, 04:56 PM   #13
tesseractive
LQ Newbie
 
Registered: Dec 2004
Posts: 12

Rep: Reputation: 1
Quote:
Originally Posted by abauer03 View Post
Tesseractive,
1.I booted in safe-mode, IP did not change. I failed to ping WinXP box from Ubuntu(both by IP and hostname)
OK -- that could be because the laptop is wireless. If the wireless drivers are not loaded in safe mode, that test won't be valid.

Quote:
Originally Posted by abauer03 View Post
2. How do I change the gateway setting in Ubuntu?!? Note everything else is working perfectly, so I assume the gateway is correct.
Actually, I meant static in XP in normal mode.

Incidentally, to set static in ubuntu, go to the system control panel, networking, and change the interface to static.

Or by CLI:
nano -w /etc/network/interfaces

and change your interface (eth0 for wired, something else for wireless) to something like:

auto eth0
iface eth0 inet static
address 192.168.1.200
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

Also, to check the gateway in ubuntu, drop to a shell and type: route -n

You'll get something like:

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
In the Gateway column, it shows 192.168.1.1, and two columns to the right one of the flags is 'G' -- whatever yours says is the gateway.

Quote:
Originally Posted by abauer03 View Post
3. Regarding, knoppix (knopper.net) – This program seems to be only available for Unix(note my laptop is running WinXp) My desktop is running Ubuntu. Do you mean boot Ubuntu with knoppix??
Actually, knoppix is a linux distribution, like ubuntu -- not a program. You'd download the ISO file, burn it to CD, and boot with it, just like a live ubuntu disc. It's the swiss army knife of linux (IMHO) -- an excellent rescue disc. Anyway, that would allow you to see whether it's a windows firewall issue or not because this takes windows (temporarily) right out of the picture.

The only caveat is that your wireless might not work, and therefore it might not be a good test...

Have you tried plugging the laptop in wired to the router and seeing if you can ping the wired interface?
 
Old 11-15-2007, 05:10 PM   #14
SilentSam
Member
 
Registered: Aug 2007
Location: Ottawa
Distribution: Arch Linux/Kubuntu/OpenSUSE
Posts: 300

Rep: Reputation: 37
I agree that there is something outside of the Ubuntu box that is the root of the problem. If you are absolutely 100% sure that there is no firewall on XP, 3rd party or built in, then try to see if your router is blocking traffic.

either from XP or Ubuntu, browse to http://192.168.1.1, put in your password etc, and see if there's any special exceptions for your wireless/laptop IP.
 
Old 11-15-2007, 05:33 PM   #15
cyberfishee
Member
 
Registered: Mar 2005
Distribution: Debian Testing
Posts: 133

Rep: Reputation: 15
Quote:
Though I don't know how to check the gateway setting in the Ubuntu box I assume it is correct since I can access the internet and moreover, I can share my printer with my winxp box and can connect from WinXP to Ubuntu flawlessl.
being able to access machine A from B but not from B to A suggests that the gateway setting on B is incorrect, since B cannot find A (due to incorrect gateway), but can respond to A. However, in that case, you shouldn't be able to access the internet, too, as accessing the internet requires your computer to be able to find the router. So I am out of ideas then =).

Can you please post the outputs of "ifconfig" and "route -n"? (as root, so on Ubuntu I would assume that means "sudo ifconfig" and "sudo route -n" but I am not sure as I have never used Ubuntu)
 
  


Reply


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
How to connect ubuntu 7.04 to sify kamlesh raul Linux - Newbie 2 05-26-2009 10:49 PM
How do I get ubuntu to connect with my LAN? fdharden Linux - Newbie 2 07-17-2007 06:58 PM
Can seem to connect on new install Ubuntu ofrog Linux - Wireless Networking 3 04-25-2007 12:41 PM
PSP connect to Ubuntu KernelJunkie Ubuntu 4 12-29-2005 03:44 AM
connect to internet in ubuntu nancy25dec Ubuntu 13 05-01-2005 04:24 AM

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

All times are GMT -5. The time now is 06:13 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