map to external drive


i am trting to map a network drive on a different network using ip addresses

how can i accomplish this

J NUnicorn wranglerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Raheman M. AbdulSenior Infrastructure Support Analyst & Systems DeveloperCommented:
Check if you can ping the ip address on other network.

Right click on your "My Computer" -> click "Map Network drive"
select the drive letter
in Folder:  Type in "\\<IP Address>\
enter authentication username and password with the domain name   ie   OtherNetwork_DOMAIN_NAME\userName
Tick reonnect at login checkbox.
You may also call the WNetAddConnection2 function from your code. More info:

FoxPro sample:

C# sample:

Some software allows to use UNC path directly. You can simply write \\\c$\folder  instead of  X:\folder.
J NUnicorn wranglerAuthor Commented:

My problem is im trying to do it from outside of the network so i would have to use a public ip

i have tried to add a network map like so

public ip address = 68.192.4.x
internal ip address =

im thinking i may have to open a port in the router but im not sure
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

David Johnson, CD, MVPOwnerCommented:
you definitely have to open and port forward a port .. is this external drive a NAS drive or just a USB drive connected to a PC? The devil is in the details
J NUnicorn wranglerAuthor Commented:

I have two computers at two different different locations.

i want to connect to the my documents folder on one of the machines so i can upload content to it
So based on this: you should open following ports on your firewall:
TCP 139, 445
UDP 137, 138

But you should also read:
David Johnson, CD, MVPOwnerCommented:
he would also have to port forward those ports from the router to the computer in question.  Not a good idea, personally I'd use remote desktop
deroodeSystems AdministratorCommented:
You definitely don't want to forward ports 139, 445 in your router, as this will make your pc vulnerable to all sorts of malice from the internet.
You could try Teamviewer (, install it on your desktop with unattended access, then use it to connect and transfer files.
I agree David. Another option could even be FTP site.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
J NUnicorn wranglerAuthor Commented:
Hi ,

i dont want to use remote desktop because it times out so quickly.

i was thinking of setting up and FTP but not to sure about it
What you mean by "it times out so quickly"? I am connected to RD session the whole day without any problem.
deroodeSystems AdministratorCommented:
Configure Timeout and Reconnection Settings for Remote Desktop Services Sessions
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Remote Access

From novice to tech pro — start learning today.