I have created simple c# .net application with login. I use VS2017 and Sql Server Management Studio (SSMS). I am not sure how to create the server to be accessed by the people which are connected in LAN as well as the people which are not connected in LAN. I tried to open TCP and UDP ports as well as I set new rules in windows firewall. For connection string I use my ip adress.
Data Source=ip.ip.ip.ip,1433;Network Library=DBMSSOCN;Initial Catalog=Name;User ID=User1;Password=pass
This is my con string (the name and password are just example).