Groups | Blog | Home
all groups > dotnet general > december 2004 >

dotnet general : FileInfo with IP Address


Steven J. Reed
12/10/2004 5:47:02 PM
I'm attempting to determine if a file exists on an Web Server by using
FileInfo and specifying an IP address. It works fine if I access another
system on my internal network (i.e., fileinfo(10.0.0.50/share/file.text)),
but it fails across the web.

The files I'm attempting to access are on a Virtual Directory that I have
rights to.

Is there possibly a TCP/IP part blocked by the firewall, some IIS setting
that's not right, or am I just all wet in thinking that I should be able to
Nicole Schenk
12/11/2004 2:49:27 AM
[quoted text, click to view]
Definetelly it should fail across the Web. However, you may issue an HTTP
request with an URL equal to the above URL, and the result will tell you if
you can access it. It will get you the contents if you do a GET.
AddThis Social Bookmark Button