In part 1, I explained the process on setting up SQL Server on an Ubuntu VM. I was able to access the server on local VM through Sqlcmd. However it does not give a great GUI experience.
In case you have a Windows machine on the same network, you can enjoy GUI experience of SSMS or Visual Studio or any other SQL Server management tool that you have been using in the past. In order to achieve that you will have to enabling access through port 1433 (default port used by SQL Server) on the client and server machine.
How to enable port 1433 on Ubuntu VM
Well, it turns out that it is not that difficult. Ubuntu comes with a default firewall (UFW - Uncomplicated Firewall). I referred this link to enable the firewall and then add an exception rule to allow inbound requests on port 1433.
Once it is set up, you need to find the IP of the Ubuntu machine. It is simple too. Open system settings.
Select network settings.
Once you have the IP address, you can connect from windows machine. I used Visual Studio SQL Server Object Explorer to connect to the server.
Awesome!!
In case you have a Windows machine on the same network, you can enjoy GUI experience of SSMS or Visual Studio or any other SQL Server management tool that you have been using in the past. In order to achieve that you will have to enabling access through port 1433 (default port used by SQL Server) on the client and server machine.
How to enable port 1433 on Ubuntu VM
Well, it turns out that it is not that difficult. Ubuntu comes with a default firewall (UFW - Uncomplicated Firewall). I referred this link to enable the firewall and then add an exception rule to allow inbound requests on port 1433.
Once it is set up, you need to find the IP of the Ubuntu machine. It is simple too. Open system settings.
Select network settings.
Once you have the IP address, you can connect from windows machine. I used Visual Studio SQL Server Object Explorer to connect to the server.
Awesome!!