Not sure I fully understand your question. Connecting to an OPC Server via IP over hostname is simply a networking question since the hostname will be translated to the IP. If you want to connect to the Factory Talk (FT) Historian, you can also use the PI to PI Interface. If connecting via OPC, you will want to use OPCDA interface for real-time and OPCHDA if you need history recovery.
Thanks Gabriel for the response