In MacOs the named unix domain socket is a bit tricky to find, but e.g. with Python, the psutils is quite handy for this, providing platform independent solution. Example:
import psutil
servername=“com.qoitech.otiicli”
path = [sock.laddr for sock in psutil.net_connections(‘unix’) if servername in sock.laddr][0]
s.connect(path)
sockets in MacOs can be found with netstat as in Linux but they seem to locate like following example:
/var/folders/s2/59_18lj51w32yknwxwksdnr548n585/T/com.qoitech.otiicli’