The Application which you have hosted in the
IIS
will have the permission to access only the project folder. It cannot access any other directory, this is how IIS works.
Quote:
it shows server directory after hosting
Since it is hosted in server, that will show only the server path.