Cannot access using \\IP but works via \\localhost

%3CLINGO-SUB%20id%3D%22lingo-sub-1392612%22%20slang%3D%22en-US%22%3ECannot%20access%20using%20%5C%5CIP%20but%20works%20via%20%5C%5Clocalhost%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1392612%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3ECan%20anybody%20help%20me%20with%20this%20problem%26nbsp%3B%20-%26nbsp%3BCannot%20access%20using%20%5C%5CIP%20but%20works%20via%20%5C%5Clocalhost.%3C%2FP%3E%3CP%3EWhen%20I%20try%20with%26nbsp%3BPortQry.exe%20use%20as%20Destination%20IP%20or%20FQDN%26nbsp%3B%20server%20IP%20or%20name%2C%20I%20receive%20back%20this%20result%20%3A%3CBR%20%2F%3E%3D%3D%3C%2FP%3E%3CP%3EStarting%20portqry.exe%20-n%20ac-cloud3%20-e%20445%20-p%20TCP%20...%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EQuerying%20target%20system%20called%3A%3C%2FP%3E%3CP%3Eac-cloud3%3C%2FP%3E%3CP%3EAttempting%20to%20resolve%20name%20to%20IP%20address...%3C%2FP%3E%3CP%3EName%20resolved%20to%2089.221.223.251%3C%2FP%3E%3CP%3Equerying...%3C%2FP%3E%3CP%3ETCP%20port%20445%20(microsoft-ds%20service)%3A%20FILTERED%3CBR%20%2F%3Eportqry.exe%20-n%20ac-cloud3%20-e%20445%20-p%20TCP%20exits%20with%20return%20code%200x00000002.%3C%2FP%3E%3CP%3E%3D%3D%3CBR%20%2F%3EBut%20when%20I%20use%26nbsp%3Bas%20Destination%20IP%20or%20FQDN%26nbsp%3B%20localhost%26nbsp%3B%20-%20result%20is%20OK%20%3A%3CBR%20%2F%3E%3D%3D%3C%2FP%3E%3CP%3EStarting%20portqry.exe%20-n%20localhost%20-e%20445%20-p%20TCP%20...%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EQuerying%20target%20system%20called%3A%3C%2FP%3E%3CP%3Elocalhost%3C%2FP%3E%3CP%3EAttempting%20to%20resolve%20name%20to%20IP%20address...%3C%2FP%3E%3CP%3EName%20resolved%20to%20127.0.0.1%3C%2FP%3E%3CP%3Equerying...%3C%2FP%3E%3CP%3ETCP%20port%20445%20(microsoft-ds%20service)%3A%20LISTENING%3CBR%20%2F%3Eportqry.exe%20-n%20localhost%20-e%20445%20-p%20TCP%20exits%20with%20return%20code%200x00000000.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3D%3D%3CBR%20%2F%3ERegards%3CBR%20%2F%3EJaroslav%20Jasek%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1392612%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESMB%20Share%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1392773%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20access%20using%20%5C%5CIP%20but%20works%20via%20%5C%5Clocalhost%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1392773%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F669080%22%20target%3D%22_blank%22%3E%40Jaroslav_Jasek%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E89.221.223.251%20is%20a%20public%20IP%20address%3B%20I%20suspect%20that%20a%20firewall%20may%20be%20blocking%20port%20445%20traffic%20from%20coming%20outside%20in%20to%20the%20device.%20When%20you%20test%20with%20localhost%2C%20it%20is%20just%20testing%20the%20NIC%20on%20the%20device%20itself%20so%20won't%20be%20going%20through%20any%20external%20firewalls%20(only%20the%20Windows%20Firewall%20if%20it%20is%20enabled).%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EIs%20there%20an%20internal%20IP%20you%20can%20test%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1392828%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20access%20using%20%5C%5CIP%20but%20works%20via%20%5C%5Clocalhost%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1392828%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F383653%22%20target%3D%22_blank%22%3E%40HidMov%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20IP%20is%20also%20internal%20adderess%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Jaroslav_Jasek_0-1589548868528.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F192038i7620BB10AC7845E6%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Jaroslav_Jasek_0-1589548868528.png%22%20alt%3D%22Jaroslav_Jasek_0-1589548868528.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1392887%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20access%20using%20%5C%5CIP%20but%20works%20via%20%5C%5Clocalhost%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1392887%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20confirming%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F669080%22%20target%3D%22_blank%22%3E%40Jaroslav_Jasek%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20show%20the%20result%20of%20a%20tracert%20using%20the%20IP%20or%20domain%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1393149%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20access%20using%20%5C%5CIP%20but%20works%20via%20%5C%5Clocalhost%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1393149%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F383653%22%20target%3D%22_blank%22%3E%40HidMov%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ec%3A%5CPortQryUI%26gt%3Btracert%20AC-CLOUD3%3C%2FP%3E%3CP%3ETracing%20route%20to%20AC-CLOUD3%20%5B89.221.223.251%5D%3CBR%20%2F%3Eover%20a%20maximum%20of%2030%20hops%3A%3C%2FP%3E%3CP%3E1%20%26lt%3B1%20ms%20%26lt%3B1%20ms%20%26lt%3B1%20ms%20AC-CLOUD3%20%5B89.221.223.251%5D%3C%2FP%3E%3CP%3ETrace%20complete.%3C%2FP%3E%3CP%3E%3D%3D%3C%2FP%3E%3CP%3Ec%3A%5CPortQryUI%26gt%3Btracert%2089.221.223.251%3C%2FP%3E%3CP%3ETracing%20route%20to%20AC-CLOUD3%20%5B89.221.223.251%5D%3CBR%20%2F%3Eover%20a%20maximum%20of%2030%20hops%3A%3C%2FP%3E%3CP%3E1%20%26lt%3B1%20ms%20%26lt%3B1%20ms%20%26lt%3B1%20ms%20AC-CLOUD3%20%5B89.221.223.251%5D%3C%2FP%3E%3CP%3ETrace%20complete.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1393153%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20access%20using%20%5C%5CIP%20but%20works%20via%20%5C%5Clocalhost%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1393153%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F383653%22%20target%3D%22_blank%22%3E%40HidMov%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3Eany%20info%20more%20-%20this%20server%20is%20not%20in%20Domain%2C%20only%20WorkGroup%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1393324%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20access%20using%20%5C%5CIP%20but%20works%20via%20%5C%5Clocalhost%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1393324%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F669080%22%20target%3D%22_blank%22%3E%40Jaroslav_Jasek%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20see%20that%20there%20isn't%20any%20funky%20routing%20going%20on%20-%20bit%20of%20a%20loss%20to%20explain%20why%20it%20is%20behaving%20in%20the%20way%20it%20is%20behaving.%20Just%20to%20check%20-%20what%20does%20this%20box%20do%3F%20Are%20the%20ports%20open%20on%20Windows%20Firewall%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESorry%20I%20can't%20be%20more%20help%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMark%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1753803%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20access%20using%20%5C%5CIP%20but%20works%20via%20%5C%5Clocalhost%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1753803%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F383653%22%20target%3D%22_blank%22%3E%40HidMov%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20update%20or%20result%20on%20this%20issue%20as%20I'm%20hitting%20the%20same%20issue%20with%20%5C%5C%3CIP%3E%5Cshare%20does%20not%20work%3C%2FIP%3E%3C%2FP%3E%3CP%3Ebut%20%5C%5C%3CSERVER%3E%5Cshare%20works%20fine%20...%3C%2FSERVER%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hello,

Can anybody help me with this problem  - Cannot access using \\IP but works via \\localhost.

When I try with PortQry.exe use as Destination IP or FQDN  server IP or name, I receive back this result :
==

Starting portqry.exe -n ac-cloud3 -e 445 -p TCP ...


Querying target system called:

ac-cloud3

Attempting to resolve name to IP address...

Name resolved to 89.221.223.251

querying...

TCP port 445 (microsoft-ds service): FILTERED
portqry.exe -n ac-cloud3 -e 445 -p TCP exits with return code 0x00000002.

==
But when I use as Destination IP or FQDN  localhost  - result is OK :
==

Starting portqry.exe -n localhost -e 445 -p TCP ...


Querying target system called:

localhost

Attempting to resolve name to IP address...

Name resolved to 127.0.0.1

querying...

TCP port 445 (microsoft-ds service): LISTENING
portqry.exe -n localhost -e 445 -p TCP exits with return code 0x00000000.


==
Regards
Jaroslav Jasek

7 Replies
Highlighted

Hi @Jaroslav_Jasek 

 

89.221.223.251 is a public IP address; I suspect that a firewall may be blocking port 445 traffic from coming outside in to the device. When you test with localhost, it is just testing the NIC on the device itself so won't be going through any external firewalls (only the Windows Firewall if it is enabled).

 

Is there an internal IP you can test?

Highlighted

Hi @HidMov 

This IP is also internal adderess 

Jaroslav_Jasek_0-1589548868528.png

Regards

Highlighted

Thanks for confirming @Jaroslav_Jasek 

 

Can you show the result of a tracert using the IP or domain?

Highlighted

@HidMov 

 

c:\PortQryUI>tracert AC-CLOUD3

Tracing route to AC-CLOUD3 [89.221.223.251]
over a maximum of 30 hops:

1 <1 ms <1 ms <1 ms AC-CLOUD3 [89.221.223.251]

Trace complete.

==

c:\PortQryUI>tracert 89.221.223.251

Tracing route to AC-CLOUD3 [89.221.223.251]
over a maximum of 30 hops:

1 <1 ms <1 ms <1 ms AC-CLOUD3 [89.221.223.251]

Trace complete.

 

Highlighted

@HidMov 
any info more - this server is not in Domain, only WorkGroup

Highlighted

Thanks @Jaroslav_Jasek 

 

Can see that there isn't any funky routing going on - bit of a loss to explain why it is behaving in the way it is behaving. Just to check - what does this box do? Are the ports open on Windows Firewall?

 

Sorry I can't be more help, 

 

Mark

Highlighted

@HidMov 

 

Any update or result on this issue as I'm hitting the same issue with \\<IP>\share does not work

but \\<server>\share works fine ...