Link to home
Start Free TrialLog in
Avatar of ecanas
ecanas

asked on

Need to map a local share when disconneted from network?

I'm currently trying to map a local share when My laptop is off the network but it cannot find the share.. I get the usual message network cannot be reached.

I've tried .. al possible senarios
net use E: \\localhost\myshare
net use E: \\127.0.0.1\myshare

And many others.. even asigned an ip address to the network card.  But of course it cannot connect and under status say's cable disconnected.  

Any ideas on how to allow my computer to ignore and just connect locally. I've even disable the adapter.. and no luck.  I can connect fine when I plug the network cable . and then map my local drive.

Any help would be greatly apreciated.

Also the http://localhost does not work as well but works when cable plugged in.

My hosts table has an entrly for localhost pointing to 127.0.0.1

THanks in advance.
Avatar of netnightmare
netnightmare

127.0.0.1 is the IP address assigned to your NIC for the purpose of loopback testing (pinging yourelf to check the NIC is working) When you say you can't use a local share do you mean a shared folder on your machine? If you mean a share outside your machine the only way you can do this is to use Offline Files, enable your networked file area to be available offline and when you are disconnected you will still be able to access your files.

>I've tried .. al possible senarios
>net use E: \\localhost\myshare
>net use E: \\127.0.0.1\myshare

I'm not sure what you're trying to achieve here! net use is the command used to map a networked share to a local drive letter.

Maybe if you are little clearer on what you actually want to do I may be able to help a little more.

Dave
you need to use the subst command in dos first
http://www.computerhope.com/substhlp.htm
subst driveletter driveletter\path
example
you want to map c:\install to f
subst f: c:\install
ASKER CERTIFIED SOLUTION
Avatar of stevenlewis
stevenlewis

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ecanas

ASKER

Ok.. I'm i trying to share a printer Local.. the printer is an USB printer, and the application that I have cannot see any windows printers/virtual.  So basically I can get the application to work by Sharing the printer and then
do a:
net use lpt2 \\localcomputername\printersharename

Of course as mentioned before this works great when I'm connected to the network.  Just the fact that the cable is plugged in.. not even accessing any resources.  As soon as cable is unplugged the share stops working.  

I've already tried setting the DHCP auto cable sencing off.  in the registry and it did not work.

I've tried also using the loopback IP instead of computer name.  Even assigning the computer a static IP.  None of these works I assume it does not work because the IP stack for some reason gets disconnected when the cable is not there.. some feature I guess of windows xp and 2000.  This is not a problem on windows nt.  

Well any other help would be apreciated.

Also plugging in a Loopback plug into it works fine as well.. would like this to make a registry or os solution however.
Since I have the same problem on my Laptop when tring to use the local web server, it will not work currently unless the lan cable is plugged in.

Thanks
No comment has been added lately, so it's time to clean up this TA.            
I will leave a recommendation in the Cleanup topic area that this question is:            
            
Answered by: stevenlewis             
      

Please leave any comments here within the next seven days.            

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!            

JulianCrawford            
EE Cleanup Volunteer