Shown below is an example of connecting to SQL Server named instance on non-default port:
Example: jdbc:sqlserver://NATSA03-7520:51001;instanceName=casmdb;databaseName=lisa104;SelectMethod=cursor