LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-14-2006, 09:07 PM   #1
Guitarist88
Member
 
Registered: Feb 2004
Location: Nz
Posts: 240

Rep: Reputation: 30
Question Could not connect to host for smb://


I have a Suse 10 box and a XP Professional SP 1 box. I have Samba installed on the linux box. So I went on the XP box and created a network named MSHOME.

After I did that, I could see the linux box from the windows box. I was able to access the shared files and printers.

I went back to the Linux box and I can see MSHOME under the samba shares. I click that and I see the two machines.

But when I attempt to go into the windows box from the linux box I get an error that reads:

"Could not connect to host for smb://joshua-qjgn0835/"

Ok so I went into konquerer and typed in smb://192.168.1.101/

In doing so I was able to access the computer but it only showed two folders, C$ and SharedDocs, no printers or anything I was expecting.

Any idea of what I can do to fix this?

Thanks in advance for your help!
 
Old 01-15-2006, 11:58 AM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Have you added a line to /etc/hosts to map 192.168.1.101 to joshua-qjgn0835 ?
It would look like this for /etc/hosts
127.0.0.1 localhost
192.168.1.101 joshua-qjgn0835

For the printer it will not showup here, use cups to install printer.

One note. If you start mapping machines it is best to use static IP's instead of dynamic IP's. This way machines will always have the same IP when they start up.

Hope this helps.
 
Old 01-15-2006, 08:09 PM   #3
Guitarist88
Member
 
Registered: Feb 2004
Location: Nz
Posts: 240

Original Poster
Rep: Reputation: 30
Hmm well it would have helped but seems things have changed.

I do have static IPs, so thats not a problem. Umm well I typed in smb://192.168.1.101 and now it asks me for a username and password to access those folders.
 
Old 01-15-2006, 10:53 PM   #4
Guitarist88
Member
 
Registered: Feb 2004
Location: Nz
Posts: 240

Original Poster
Rep: Reputation: 30
Angry Update

Well as an update I restarted the Linux box into winders xp. After much agony and toiling I finally got that network going. I can access the other pc and see the shared printer and whatnot. So I figured, hey maybe I did something on that other computer during this trial that will make it work. I rebooted into linux but to no avail. I still get the same message!

This really sucks!
 
Old 01-16-2006, 12:04 AM   #5
Snowbat
Member
 
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338

Rep: Reputation: 31
I don't think Konqueror has the ability to show shared printers. Smb4K does if you want to try that. From what I've read, in Suse 10 you need to use KDEPrint to set up printing to a printer shared by Windows. Ask in the Suse forum for help with that: http://www.linuxquestions.org/questi...splay.php?f=60

The KDEPrint Handbook: http://docs.kde.org/stable/en/kdebase/kdeprint/

Last edited by Snowbat; 01-16-2006 at 12:07 AM.
 
Old 01-16-2006, 12:59 PM   #6
Guitarist88
Member
 
Registered: Feb 2004
Location: Nz
Posts: 240

Original Poster
Rep: Reputation: 30
Fixed

Well I did some stuff, I'm not quite sure what fixed it. I tried turning off my firewall on the linux box and I was able to access the windows share. So I just added the IP to the firewall so I could access it. Now it works... All I have to do is set up the shared printer like you told me earlier!

Thanks for the help!
 
  


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
smb:/// because no host " (null) sudeendra MEPIS 3 06-10-2005 05:56 AM
cant connect to smb shares murray_linux Slackware 3 02-02-2004 11:35 AM
smb:\ cant connect to local host?! ratbert90 Slackware 2 10-30-2003 05:38 PM
smb server, no host (null) found Gallienus Linux - Networking 6 08-29-2003 04:57 PM
can't mount SMB at boot (no route to host) GaijinPunch Linux - Networking 2 08-05-2003 06:08 PM

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

All times are GMT -5. The time now is 06:34 PM.

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