Unable to access Windows SMB shared folder with IP addressing

Asked 1 months ago, Updated 1 months ago, 2 views

Using the Task Scheduler,
Batch C# to a Shared Folder in
When accessing from Windows Server 2012, authentication fails with IP addressing and authentication succeeds with hostname specification.
Tasks are configured to run regardless of the login state of the task invoking user.
IP addressing, \\XXX.XXX.XXX.XXX\Shared Folder Path
hostname,\\serverName\shared folder path

In addition, the authentication information is set to Windows credentials so that it does not have to be programmed.
The Windows credentials are as follows:

For kerberos authentication, I also looked at articles that fail authentication with IP addressing, but I don't feel comfortable.

Reference Page:

If anyone knows the cause, please advise.
Thank you for your cooperation.

c# windows

2022-09-30 14:01

1 Answers

In the case of IP, isn't the authentication domain unknown?
Why don't you check the packets on WireShark?
I'm sorry it's not a specific answer.

I'm sorry that I couldn't create a similar environment, but
In the case of IP, the credentials you want to use may not be available.
Why don't you create a credential manager connection using IP instead of HOST name?

2022-09-30 14:01

If you have any answers or tips

© 2022 OneMinuteCode. All rights reserved.