这是用于内部和外部 DNS 设置。所以我的配置文件说:
connectionType=acceptor
SenderCompID=provider
TargetCompID=client1
SocketAcceptAddress=X.X.X.X
SocketAcceptPort=1901
接着
connectionType=acceptor
SenderCompID=provider
TargetCompID=client2
SocketAcceptAddress=url.mapping.to.X.X.X.X
SocketAcceptPort=1902
并且接受器不会出现错误:
quickfix.RuntimeError: java.net.BindException: Cannot assign requested address: bind