Avatar of lbowers
lbowersFlag for United Kingdom of Great Britain and Northern Ireland

asked on 

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?
Programming Languages-OtherVisual Basic Classic

Avatar of undefined
Last Comment
TimCottee
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

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.

Avatar of lbowers
lbowers
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

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...
ASKER CERTIFIED SOLUTION
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Visual Basic Classic
Visual Basic Classic

Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.

165K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo