"net use K: \\192.168.0.40\D$" is working - "net use K: \\comp7\D$" is NOT working ????

  • Thread starter Martin Caldwell
  • Start date
M

Martin Caldwell

I have an inhouse LAN with three computers.

one of the computers has the name "comp7" with (fixed) IP 192.168.0.40.

When I map now the remote shared partition D with name D$ to my local drive K:
with either the command

net use K: \\192.168.0.40\D$

it works and with the command

net use K: \\comp7\D$

it doesn't work.

Why ?

Not putting it e.g. into the "hosts" file cannot be the reason because
other shared folders on other computer (which are not in the "hosts" file)
can be accessed WITH the hostname succesfully.

I could imagine that this is a firewall problem.
Which ports are used to perform hostname resolving in the LAN ?

Moreover curious is that I cannot perform a

net view \\192.168.0.40

It yields a

System error 5 has occurred.
Access is denied.

However access must be available because sharing is possible through
fixed IP.

Martin
 
S

Steve Winograd [MVP]

I have an inhouse LAN with three computers.

one of the computers has the name "comp7" with (fixed) IP 192.168.0.40.

When I map now the remote shared partition D with name D$ to my local drive K:
with either the command

net use K: \\192.168.0.40\D$

it works and with the command

net use K: \\comp7\D$

it doesn't work.

Why ?

Not putting it e.g. into the "hosts" file cannot be the reason because
other shared folders on other computer (which are not in the "hosts" file)
can be accessed WITH the hostname succesfully.

I could imagine that this is a firewall problem.
Which ports are used to perform hostname resolving in the LAN ?

Moreover curious is that I cannot perform a

net view \\192.168.0.40

It yields a

System error 5 has occurred.
Access is denied.

However access must be available because sharing is possible through
fixed IP.

Martin

Here are some things to check on Comp7:

1. Make sure that a firewall isn't blocking these ports on the LAN:
TCP 139, TCP 445, UDP 137, UDP 138.

2. Make sure that NeBIOS over TCP/IP is enabled:

a. Open the Network Connections folder.
b. Right click the local area network connection.
c. Click Properties.
d. Click Internet Protocol (TCP/IP).
e. Click Properties.
f. Click Advanced.
g. Click WINS.
h. Click the Enable NetBIOS Over TCP/IP button.

3. Make sure that the registry entry that allows browsing the computer
is set correctly:

a. Run the registry editor.
b. Open this key: HLM\SYSTEM\CurrentControlSet\Control\LSA
c. Set the value of RestrictAnonymous to 0.

Then, reboot and try accessing the computer again.
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)

Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com
 
S

Stuart

I have an inhouse LAN with three computers.

one of the computers has the name "comp7" with (fixed) IP 192.168.0.40.

When I map now the remote shared partition D with name D$ to my local drive K:
with either the command

net use K: \\192.168.0.40\D$

it works and with the command

net use K: \\comp7\D$

it doesn't work.

Why ?

This sounds like your name resolution isn't working. either WINS DNS or
hosts file. Do you have a DNS server, are you using netbios?
Not putting it e.g. into the "hosts" file cannot be the reason because
other shared folders on other computer (which are not in the "hosts"
file) can be accessed WITH the hostname succesfully.

Do you have netbios installed on all your PC's?
I could imagine that this is a firewall problem. Which ports are used to
perform hostname resolving in the LAN ?

I know DNS is port 53, not sure about wins, I think netbios is 139 or 135
 
S

Stuart

I have an inhouse LAN with three computers.

one of the computers has the name "comp7" with (fixed) IP 192.168.0.40.

When I map now the remote shared partition D with name D$ to my local drive K:
with either the command

net use K: \\192.168.0.40\D$

it works and with the command

net use K: \\comp7\D$

it doesn't work.

Why ?

This sounds like your name resolution isn't working. either WINS DNS or
hosts file. Do you have a DNS server, are you using netbios?
Not putting it e.g. into the "hosts" file cannot be the reason because
other shared folders on other computer (which are not in the "hosts" file)
can be accessed WITH the hostname succesfully.

Do you have netbios installed on all your PC's?
I could imagine that this is a firewall problem.
Which ports are used to perform hostname resolving in the LAN ?

I know DNS is port 53, not sure about wins, I think netbios is 139 or 135
 
P

Pegasus \(MVP\)

Martin Caldwell said:
I have an inhouse LAN with three computers.

one of the computers has the name "comp7" with (fixed) IP 192.168.0.40.

When I map now the remote shared partition D with name D$ to my local drive K:
with either the command

net use K: \\192.168.0.40\D$

it works and with the command

net use K: \\comp7\D$

it doesn't work.

Why ?

Not putting it e.g. into the "hosts" file cannot be the reason because
other shared folders on other computer (which are not in the "hosts" file)
can be accessed WITH the hostname succesfully.

I could imagine that this is a firewall problem.
Which ports are used to perform hostname resolving in the LAN ?

Moreover curious is that I cannot perform a

net view \\192.168.0.40

It yields a

System error 5 has occurred.
Access is denied.

However access must be available because sharing is possible through
fixed IP.

Martin

You may have to enable Simple File Sharing - see here:
http://support.microsoft.com/default.aspx?kbid=307874#3
 
R

Robert L [MS-MVP]

Make sure NetBIOS over TCP/IP is enabled on all computers. Also make sure computer browser is running.

Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
I have an inhouse LAN with three computers.

one of the computers has the name "comp7" with (fixed) IP 192.168.0.40.

When I map now the remote shared partition D with name D$ to my local drive K:
with either the command

net use K: \\192.168.0.40\D$

it works and with the command

net use K: \\comp7\D$

it doesn't work.

Why ?

Not putting it e.g. into the "hosts" file cannot be the reason because
other shared folders on other computer (which are not in the "hosts" file)
can be accessed WITH the hostname succesfully.

I could imagine that this is a firewall problem.
Which ports are used to perform hostname resolving in the LAN ?

Moreover curious is that I cannot perform a

net view \\192.168.0.40

It yields a

System error 5 has occurred.
Access is denied.

However access must be available because sharing is possible through
fixed IP.

Martin
 
R

Ron Lowe

Martin Caldwell said:
I have an inhouse LAN with three computers.

one of the computers has the name "comp7" with (fixed) IP 192.168.0.40.

When I map now the remote shared partition D with name D$ to my local
drive K:
with either the command

net use K: \\192.168.0.40\D$

it works and with the command

net use K: \\comp7\D$

it doesn't work.

Why ?

Not putting it e.g. into the "hosts" file cannot be the reason because
other shared folders on other computer (which are not in the "hosts" file)
can be accessed WITH the hostname succesfully.

I could imagine that this is a firewall problem.
Which ports are used to perform hostname resolving in the LAN ?

Moreover curious is that I cannot perform a

net view \\192.168.0.40

It yields a

System error 5 has occurred.
Access is denied.

However access must be available because sharing is possible through
fixed IP.

Martin


The 'net view \\ip-address' giving an error 5 is a clue.

It seems to me that you can connect to the shares, but not list the shares
on the remote computer.

This is consistent with RestrictAnonymous being wrong.
This will prevent anonymous enumeration of shares, but not access to those
shares.

Try this for a fix:


On the machine you are trying to contact, ( 'comp7' ) go to:


start | Run | type 'Regedit' in the box.


On the left hand pane, navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\LSA\


In the LSA folder, look in the right-hand pane.
look for the value 'RestrictAnonymous'.


It needs to be zero.
If it is not, double-click it and set it to zero.


( The value of RestrictAnonymousSam can be left at 1. )


Close regedit, and re-boot 'comp7'.


See if that helps.
 
J

John Wunderlich

(e-mail address removed) (Martin Caldwell) wrote in
I have an inhouse LAN with three computers.
one of the computers has the name "comp7" with (fixed) IP
192.168.0.40.
When I map now the remote shared partition D with name D$ to my
local drive K: with either the command

net use K: \\192.168.0.40\D$

it works and with the command

net use K: \\comp7\D$

it doesn't work.

Why ?

Not putting it e.g. into the "hosts" file cannot be the reason
because other shared folders on other computer (which are not in
the "hosts" file) can be accessed WITH the hostname succesfully.

I could imagine that this is a firewall problem.
Which ports are used to perform hostname resolving in the LAN ?

Moreover curious is that I cannot perform a

net view \\192.168.0.40

It yields a

System error 5 has occurred.
Access is denied.

However access must be available because sharing is possible
through fixed IP.

Martin

You obviously are having name resolution problems.
When given a computer "Name" to connect to, unless you are using a
WINS server, most likely the method of resolution is to do a
broadcast to determine the client. This can fail if a computer does
not respond to broadcasts (usually due to Firewall issues). Firewall
issues are addressed in Microsoft Article:

"Internet firewalls can prevent browsing and file sharing"
<http://support.microsoft.com/kb/298804/en-us>

The article specifies that ports used are 135-139 and 445.

A less common reason for this would be if one of your computers
became a P-Node (peer-to-peer) wherein broadcasting is not used to
find computers. Do a "ipconfig /all" command from a command prompt
window and check the node types of your computers. Some good info
here:
<http://www.examcram2.com/articles/article.asp?p=102617&seqNum=10>

An even more remote possibility would be if your computer name
contained some unprintable characters other than "comp7" (perhaps a
trailing space?)

HTH,
John
 
H

Hans-Georg Michna

I have an inhouse LAN with three computers.

one of the computers has the name "comp7" with (fixed) IP 192.168.0.40.

When I map now the remote shared partition D with name D$ to my local drive K:
with either the command

net use K: \\192.168.0.40\D$

it works and with the command

net use K: \\comp7\D$

it doesn't work.

Why ?

Martin,

because NetBIOS over TCP/IP isn't working properly on the
problem computer.

You can check http://winhlp.com/ for more information.

Hans-Georg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top