Replication setup is made in the following sequence:
Setup the Publication server, having created a new publication.
Setup the Subscription server, having created a subscription to publish the Publication server.