i have some difficulty in setting up SQL replication over the internet. I am using a static public IP thru my firewall and port forward to the distribution server.
basically everything is fine, i was able to register and connect the remote database.
these are the steps i did to do this:
- published my public IP in my firewall and port forward 1433 request to distributor (remote computer)
- created alias to remote computer, alias name = IP; port=1433; protocol=tcp/ip; server=servername
- added ip to hosts file (192.168.. servername) computer name of remote server = servername of sql
- also did this to the local pc (subscriber) except the IP is the public IP
- ping the servername of the remote in the local pc and result is the servername of the remote PC (publisher/distributor) - okay
- tested in SQL management studio and it successfully connect to the remote pc
** now configuring the distributor **
i tried both sa and windows account for this
i followed the step by step procedure from here: http://www.cbizsoft.com/techsupport/ReplicationPage3.htm
i also tried placing this in the snapshot folder:
//servername/c/ReplData
** Now creating the publication ** i followed this: http://www.cbizsoft.com/techsupport/ReplicationPage4.htm
i chose both SQL server 2005 and 2008 in the subscriber type
Now i checked the snapshot agent and it's working fine ([100%] A snapshot of 1 article(s) was generated.)
Now creating the subscription
I tried push and pull subscription for this In the pull subscription i created the subscription in the local pc (subscriber) In the push subscription i created the subscription in the remote pc (publisher) For the push subscription i followed this: http://www.cbizsoft.com/techsupport/ReplicationPage6.htm everything was fine, no error occurred by the way, i attached the copy of the database from remote pc to local pc and chose it while setting these up.
Now i checked the Synchronization Status after everything is completed and it says Connecting to Publisher 'remote servername' (servername of publisher/distributor) and Connecting to Subscriber 'local servername' (servername of subscriber)
and when i checked the selected table it was empty. no record from the remote pc was transferred. The View Synchronization Status keeps on loading until timeout is reached.
my assumption is that, the snapshot agent cannot communicate or pass thru between subscriber and publisher.
I hope someone can help me ... i'm hoping this to work... i hope i'm almost there and i just missed something... i have been doing this for months already.
by the way i am using sql server 2014.
thank you guys.