DB Connection string using an IP address and DB instance name

I have an application that is used on 2 computers:
appComputer ( & devComputer (
I use a file named AppSettings.xml to set the connection string.
The app computer only has 1 database instance so I used the IP address:
<ConStringX>Database=Clients; Server=;Uid=This;Pwd=That;</ConStringX>
and it works great.
On the DevComputer I use the computer name and the instance name:
<ConStringX>Database=Clients; Server=DevComputer\Demo;Uid=This;Pwd=That;</ConStringX>
This works as long as I am running the application on the DevComputer.

I  have to be able to run the application from a different server pointing back to where the DB is located.
So how do I change the connection string to use the IP address ( and the instance name (Demo)

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Om PrakashCommented:

Checkfollowing link for more examples:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Om PrakashCommented:
Above solution might give an error.
Use just the IP address and not the instance name (
Also make sure the "SQL Agent" is running on the box you're trying to connect.
n2dwebprogrammerAuthor Commented:
I think this may have solved it. (I had the wrong slash). I have to redeploy DBs to test it - I will let you know soon if it fixed it- thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.