• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 162
  • Last Modified:

Locating a file using an IP address

My current project at work requires that I open an access database using a DNS name. I am now in a position where I can resolve DNS names (using WinSock), but I am unable to open the database using the returned IP value. Is it even possible to use IP addresses as a method of locating files on an internal network? Can DNS return more than just an IP address?
0
lbowers
Asked:
lbowers
  • 2
1 Solution
 
TimCotteeCommented:
You can use the IP address as part of a UNC path. E.G.,

To access a server share such as

\\Server\Sharename\Path\filename you can use

\\172.16.53.231\ShareName\Path\filename.

DNS is only there to provide the IP address for a specified name.

0
 
lbowersAuthor Commented:
Tim, You've answered my question really - I need to give you the points. I actually tried something similar earlier today but forgot to specify the \ShareName\ portion after the IP address. Thanks for your help...
0
 
TimCotteeCommented:
I'll answer it for you then, you could have accepted the comment as an answer also. Glad to be of help.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now