SQL server connection over a lan ?

Hi

I have 2 VPS servers in a datacentre
one has DB
one has Website
The web app connection string has the public IP for SQL connection

The data centre created a new virtual adapter on each VPS and i have set up the lan ip's
192.168.1.2
and
192.168.1.3

I can do this now:  \\192.168.1.2\c$\DBs
And see the MDF file (after typing in the login credentials)

I want the website to access the MSSQLSEVER on the LAN and not on the public IP that it does already

Can anyone help me figure out how to do it?
websssAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
ste5anConnect With a Mentor Senior DeveloperCommented:
Just change the IP in the connection string in your Web.config.
0
All Courses

From novice to tech pro — start learning today.