SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL Browser service needed for non-standard static port?


SQL Browser service needed for non-standard static port?

Author
Message
alanspeckman
alanspeckman
SSC Eights!
SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)

Group: General Forum Members
Points: 824 Visits: 768
If I am using dynamic port settings on my sql server instance, I need the sql browser service to run and listen over port 1434 for incoming requests.

If I am using a static default port of 1433, the browser service is not needed.

However, if I set a non-default port, say 1638, for my SQL server to listen over, do I need the SQL Browser to listen for incoming requests, so it can look up 1638???

My understanding is, as a connection coming into a sql server instance, if it is not using dynamic ports, and not using the default port, I MUST KNOW the port SQL Server is listening on and use that port in my connection string to make a succesfful connection.

I always thought the browser service was only needed for dynamic ports.
SQL Show
SQL Show
SSCommitted
SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)

Group: General Forum Members
Points: 1553 Visits: 1078
"However, if I set a non-default port, say 1638, for my SQL server to listen over, do I need the SQL Browser to listen for incoming requests, so it can look up 1638???"
-- Browser service means to direct client request to dynamic ports. If you intend to use 1638 (static port), use it in connection string. So that browser service will be bypassed.

My understanding is, as a connection coming into a sql server instance, if it is not using dynamic ports, and not using the default port, I MUST KNOW the port SQL Server is listening on and use that port in my connection string to make a succesfful connection.
-- Yes

I always thought the browser service was only needed for dynamic ports.
-- yes, its not needed for a static port.
SQLRNNR
SQLRNNR
SSC Guru
SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)SSC Guru (68K reputation)

Group: General Forum Members
Points: 68069 Visits: 18570
Keep in mind that should you ever need to use the dedicated admin connection, the browser service will need to be running and 1434 will need to be accessible.



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw

Perry Whittle
Perry Whittle
SSC Guru
SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)

Group: General Forum Members
Points: 55579 Visits: 17709
Firstly, are these questions related to firewall configuration for a SQL server instance?



alanspeckman (8/7/2012)
If I am using dynamic port settings on my sql server instance, I need the sql browser service to run and listen over port 1434 for incoming requests.

Yes and this is really the only way as the dynamic port could change each time the instance restarts


alanspeckman (8/7/2012)

If I am using a static default port of 1433, the browser service is not needed.

That is correct


alanspeckman (8/7/2012)
However, if I set a non-default port, say 1638, for my SQL server to listen over, do I need the SQL Browser to listen for incoming requests, so it can look up 1638???

If you'll be connecting directly to the IP,port then you don't need the browser service, it's only needed when connecting using the instance name


alanspeckman (8/7/2012)
My understanding is, as a connection coming into a sql server instance, if it is not using dynamic ports, and not using the default port, I MUST KNOW the port SQL Server is listening on and use that port in my connection string to make a succesfful connection.

See above



alanspeckman (8/7/2012)

I always thought the browser service was only needed for dynamic ports.

No, although it is only really more relevant when dynamic ports are used as they can change at any restart

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
alanspeckman
alanspeckman
SSC Eights!
SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)

Group: General Forum Members
Points: 824 Visits: 768
SQLRNNR (8/7/2012)
Keep in mind that should you ever need to use the dedicated admin connection, the browser service will need to be running and 1434 will need to be accessible.


Didn't know that, thanks!
alanspeckman
alanspeckman
SSC Eights!
SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)

Group: General Forum Members
Points: 824 Visits: 768
So,

Browser service needed:
1. If connecting using only the instance name with a non-standard port
2. If connecting to an instance that uses dynamic ports, such as a named instance because it is configured to use dynamic ports initially when installed.

Browser service not needed
1. If connected to an instance using standard port 1433?
2. If using the IP address and the port number of the sql server instance.


Is #1 in both categories above correct? If not, can you please correct me?

Thanks,
Alan.
Perry Whittle
Perry Whittle
SSC Guru
SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)

Group: General Forum Members
Points: 55579 Visits: 17709
alanspeckman (8/9/2012)
So,

Browser service needed:
1. If connecting using only the instance name with a non-standard port
2. If connecting to an instance that uses dynamic ports, such as a named instance because it is configured to use dynamic ports initially when installed.

yes and yes


alanspeckman (8/9/2012)
Browser service not needed
1. If connected to an instance using standard port 1433?
2. If using the IP address and the port number of the sql server instance.


Is #1 in both categories above correct? If not, can you please correct me?

Thanks,
Alan.

again, yes and yes

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
alanspeckman
alanspeckman
SSC Eights!
SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)

Group: General Forum Members
Points: 824 Visits: 768
Thank you all for reading and thank you Perry for your replies. :-) Great community here.

One last question.

Is it possible for 2 SQL Server instances running on the same server to share the same port? I have tested this and it isn't possible from what I have tested so far.

Is it possible?
Perry Whittle
Perry Whittle
SSC Guru
SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)

Group: General Forum Members
Points: 55579 Visits: 17709
alanspeckman (8/13/2012)
Thank you all for reading and thank you Perry for your replies. :-) Great community here.

One last question.

Is it possible for 2 SQL Server instances running on the same server to share the same port? I have tested this and it isn't possible from what I have tested so far.

Is it possible?

No, they would need a separate IP address stacked on the NIC or a totally separate NIC

For example if i have a server with a single NIC, i have 2 IP addresses stacked as

10.10.10.41 255.255.255.0
10.10.10.42 255.255.255.0

i could then set one instance to listen on

10.10.10.41, 1433

and another on

10.10.10.42, 1433

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
andersg98
andersg98
SSCrazy
SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)

Group: General Forum Members
Points: 2616 Visits: 787
At the risk of adding confusion you can connect to an instance using a nonstandard (not dynamic) port and the server name without the browser service.

example: Servername.domainname\instancename,port_number



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search