• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 348
  • Last Modified:

Connection issue between SQL Servers (using Public IP)

I want to configure replication between my office and hosting company, where we hosted our application with its databases.

We are able to replicate from my office to hosting company server, by allowing hosting company IP address in our firewall.

When we want to do the same, from hosting company server to my office, it is not able to connect to my server. Note that we have a public IP address, through which connection should be established. But this IP address is not a server / machine, just an IP. Also inside our office there are many SQL Server instances and we want to connect to one of them.

Independent of replication, I am able to connect to hosting company SQL Server using SSMS in my Office Server. But when I do the same using remote desktop connection of hosting company server to connect to SQL Server in my office, I failed.

Please suggest.
0
batchakamal
Asked:
batchakamal
  • 5
  • 3
1 Solution
 
Zaheer IqbalTechnical Assurance & ImplementationCommented:
Have the hosting company opened there firewall etc to access your server?
0
 
Zaheer IqbalTechnical Assurance & ImplementationCommented:
Standard Security
Server=myServerAddress;Database=myDataBase;User Id=myUsername; Password=myPassword;

Trusted Connection
Server=myServerAddress;Database=myDataBase;Trusted_Connection=True;

Connect via an IP address
Data Source=190.190.200.100,1433;Network Library=DBMSSOCN; Initial Catalog=myDataBase;User ID=myUsername;Password=myPassword;
DBMSSOCN=TCP/IP is how to use TCP/IP instead of Named Pipes. At the end of the Data Source is the port to use. 1433 is the default port for SQL Server
0
 
batchakamalAuthor Commented:
Dear 1stITMAN, Thanks for your immediate reply.


Have the hosting company opened there firewall etc to access your server?

We have our own network inside our office, and there are many servers inside LAN. We have a public IP through which hosting company can enter into our network. Hosting company can also access this IP. But how can I connect to one of the SQL Server inside my LAN from hosting company.
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
Zaheer IqbalTechnical Assurance & ImplementationCommented:
Do you have TMG ?
0
 
batchakamalAuthor Commented:
YES
0
 
Zaheer IqbalTechnical Assurance & ImplementationCommented:
OK setup a rule to redirect from your TMG to the SQL Server then
0
 
batchakamalAuthor Commented:
Ok I will tell network team to do this.
Once they complete that step, can I mention the SQL instance name in my network directly?
OR
I have to connect using public IP, which will redirect to SQL Server. In this case I may have more than one instance to connect to.
0
 
Zaheer IqbalTechnical Assurance & ImplementationCommented:
you will need to connect via IP unless you setup an A record on your domain. Say SQL.domainname.com or something like that...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now