Changing Custom 445 Port for SQL Log Shipping

Kiran Varekar 20 Reputation points
2025-11-04T17:01:27.8033333+00:00

Hello team,

We have a banking enclosed environment. Here we are planning to install SQL Server 2022 in DC and DR, and then there will be log shipping between DC and DR via shared network drive.

Port 445 cannot be provided due to some bank compliance policies. I wanted to know, is there any process by which we can modify the default port 445?

Regards,

Kiran Varekar

SQL Server Database Engine
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marcin Policht 67,905 Reputation points MVP Volunteer Moderator
    2025-11-04T20:43:06.2+00:00

    AFAIK, SQL Server log shipping requires SMB (port 445) for file sharing so you can’t change the port. The workaround would be to use another file transfer mechanism instead of relying on SMB or set up an IPSec tunnel (although that would still involve the use of TCP at the endpoints).

    Alternatively, you might be able to leverage QUIC on Windows Server 2022+ which allows SMB file sharing over UDP port 443 instead of TCP port 445.


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.