question

rehaan avatar image
rehaan asked

SQL Server Dynamic Port change

I have a named instance which has been assigned default port 1433. I want to change this port as 1433 is default port. How do i pick up a new port number? can that be any number ? I know how to change it but what i need is what port number do i need over here? Do i need to change any fire wall rules. I have never changed any ports while i did installation, how does those ports get assigned and how do they work?
sql server 2012connectionport
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ThomasRushton avatar image
ThomasRushton answered
What port number do you need? That's up to you and your network guys to discuss. Firewall rules will need to be changed, yes, as they look at traffic going in & out on various ports. The default is most likely to block traffic that doesn't match the rules provided.
3 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

rehaan avatar image rehaan commented ·
When I do a new installation , I have never changed any port. How is this port being assigned ?
0 Likes 0 ·
ThomasRushton avatar image ThomasRushton ♦♦ commented ·
How do you know that that's the port in use? The other thing to check is the SQL Browser service - is that running?
0 Likes 0 ·
rehaan avatar image rehaan commented ·
yes sql browser service is running
0 Likes 0 ·
Waqar_lionheart avatar image
Waqar_lionheart answered
Its default. To change it you have to go in sql server configuration from program > sql server 2008 or whatever > configuration tools > ... tcpip in properties > ipaddresses then at the bottom allips.change your port just watch this youtube clip, might be helpful. https://www.youtube.com/watch?v=HKfaojG7tI0
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

rehaan avatar image rehaan commented ·
Thank you Waqar
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.