samba smbclient timeout connecting to

Posted on 2009-03-31
Last Modified: 2013-12-09
doing this from a Linux redhat 7.3 with  ip =

smbclient -L //Asus -W  mygroup

I get this error:

added interface ip= bcast= nmask=
timeout connecting to                          
Error connecting to (Operation already in progress)
Connection to Asus failed                                        

notice that the query for Asus netbios name goes outside of my network,

actually my  Asus is a Windows PC with ip=, so WHY is not seeing ?

eth0      Link encap:Ethernet  HWaddr 00:0E:A6:35:86:26
          inet addr:  Bcast:  Mask:
          RX packets:3147 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2175 errors:0 dropped:0 overruns:0 carrier:0
          collisions:11 txqueuelen:100
          RX bytes:287217 (280.4 Kb)  TX bytes:531249 (518.7 Kb)
          Interrupt:3 Base address:0x8800

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface        *        U     0      0        0 eth0       *            U     0      0        0 lo
default         router         UG    0      0        0 eth0
Question by:sergioszy_
  • 3
  • 2

Accepted Solution

Morne Lategan earned 125 total points
ID: 24044973
Hi sergioszy

What's the output of:

dig asus


nmblookup asus

Author Comment

ID: 24313479
sorry for the delay,

dig asus output:

; <<>> DiG 9.2.0 <<>> asus
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5014
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;asus.                          IN      A

asus.                   10      IN      A

;; Query time: 8 msec
;; WHEN: Wed May  6 08:51:17 2009
;; MSG SIZE  rcvd: 42

nmblookup asus output:

querying asus on asus<00>



Author Comment

ID: 24314500

I notice that smbclient was searching for Asus first in /etc/hosts, then dns lookup, so

to correct this problem I do

smbclient -R bcast  -L //asus  -W  mygroup

this ( -R bcast ) do a broadcast in the local network.

so thanks to  Uberpappa

Author Closing Comment

ID: 31564779
I notice that smbclient was searching for Asus first in /etc/hosts, then dns lookup, so

to correct this problem I do

smbclient -R bcast  -L //asus  -W  mygroup

this ( -R bcast ) do a broadcast in the local network.

so thanks

Expert Comment

by:Morne Lategan
ID: 24319136
Hy again.

Glad you got a solution. Just for reference: You can also change the lookup order in smb.conf:

name resolve order = wins bcast hosts

That will make samba use wins then broadcast, then dns.

If you don't have wins, change bcast to be the first entry and you should be fine without the -B option.

Featured Post

New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Auto channel for WiFi (Access Point) 3 78
map dropbox drive 3 54
nagios remote hosts 9 46
Can't See Site After DNS Resolved 7 47
With the withdrawal of support for Windows Server 2003 this summer, many clients face the issue of moving away from their 2003 installs. There are a few options out there that many people/companies are selling. But the clients I have, haven't wanted…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now