How to get Client IP from UDP Transport in Mule ESB? -


i'm trying client ip , socket of udp package , save in flowvar variable using mel code

#[message.inboundproperties.mule_remote_client_address] 

however variable null, have been able make work on tcp transport, know how remote client address in udp?

this xml file:

<mule xmlns:metadata="http://www.mulesoft.org/schema/mule/metadata"  xmlns:udp="http://www.mulesoft.org/schema/mule/udp" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans"  xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd http://www.mulesoft.org/schema/mule/udp http://www.mulesoft.org/schema/mule/udp/current/mule-udp.xsd http://www.mulesoft.org/schema/mule/amqp http://www.mulesoft.org/schema/mule/amqp/current/mule-amqp.xsd"> <udp:connector name="udp" validateconnections="true" keepsendsocketopen="true" doc:name="udp" broadcast="true"/> <flow name="udpflow"> <udp:inbound-endpoint exchange-pattern="one-way" host="172.22.20.103" port="4040" connector-ref="udp" responsetimeout="10000" doc:name="udp" metadata:id="9260547c-3b58-4ebd-953e-fd3e7bb063f3"/> <object-to-string-transformer doc:name="object string"/> <set-variable variablename="source" value="#[message.inboundproperties.mule_remote_client_address]" metadata:id="6a72ad72-167f-44da-9f3d-75143c5c0a2f" doc:name="variable"/> <set-payload value="#[flowvars.source] dice #[payload]" doc:name="set payload"/> <echo-component doc:name="echo"/> </flow> </mule> 

update: solve address issue mel code

#[message.inboundproperties['packet.address']]: #[message.inboundproperties['packet.port']] 

thanks david dossot help.

use:

#[message.inboundproperties['packet.address']] 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -