Sidebar
0 votes
57 views
by brandon-p-9741 (170 points)
Is there a clean way to get the IP address of the incoming HL7 connection?

I would like to use it to route with a condition block, so I would process it on each message.

1 Answer

0 votes

For a channel configured to receive messages via TCP/IP socket, the "filename" that we log is the source IP address.  Thus, you can use qie.getFileName() to display the source IP address, which can then be used in a condition node to route your messages.  

In addition, we also have source.getRemoteIPAddress(), which is specifically designed for TCP/IP socket source.  Both methods will return the IP address of the source.

by jon-t-7005 (8.4k points)
edited by jon-t-7005
...