If you know the WWN of a remote FC device or IPFC instance, you can determine the local HBA port WWN using the fcinfo command. In the following example, the WWN of the remote IPFC instance is 2100001b328512fb:
# fcinfo remote-port 2100001b328512fb
HBA Port WWN: 10000000c9722de0
Count of Remote Port(s): 8
Remote Port WWN: 2100001b328512fb
Active FC4 Types: SCSI,IP
SCSI Target: no
Port ID: 10300
Port Symbolic Name: qlc(0,0)
Node WWN: 2000001b328512fb
Remote Port WWN: 2101001b32a512fb
You can see that the remote port 2100001b328512fb is accessible through the HBA port with WWN 10000000c9722de0.