you have to configure SQL Server to accept TCP/IP connections (it is disabled by default) and you need to set the port number.
1- Go to SQL Server Configuration Manager
2- Open SQL server Network Configuration/Protocols for SQLEXPRESS
3- Set TCP/IP to Enabled
4- Right click on TCP/IP Properties and set the port number