Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 I need help

Author  Topic 

tmahesh1983
Starting Member

1 Post

Posted - 2007-08-22 : 02:42:01
I need the solution for the following problem.

We are using Microsoft SQL Server Database and Java as front End.

My Customer will allow to communicate between client and server within certain range of port (for example 1401 - 1600) due to some security reason. But we have problem to implement this range in JDBC connection, because JDBC Connection URL does not accept Local port, Can any one suggest way to control the local port range in JDBC connection.

For Example:

String connectionUrl = "jdbc:sqlserver://ServerIP:1433;databaseName=MyDB";

Here 1433 is the port to connect to on Server, I am not asking about this port; We want to control local port,

Like....

Socket(InetAddress remoteaddress, int remoteport,
InetAdddress localAddr, int localPort)

Using socket we can control localport as well as remote port. I am asking this type of local port, Not for server port.

But how can i control localport in JDBC Connection?
   

- Advertisement -