title: Netty - UDP server
body: <p>I am having an UDP Netty based server. It has a <code>SimpleChannelUpstreamHandler</code> pipelined where I override the <code>messageReceived</code> method.</p>
  
  <p>I need to write back some information now and then. I could only do that by using the socket information from <code>MessageEvent.getRemoteAddress()</code>, and the channel from <code>MessageEvent.getChannel()</code>. In order to be able to reuse this information I keep in in a static map.</p>
  
  <p>This turns into <code>MessageEvent.getChannel().write("foo", MessageEvent.getRemoteAddress());</code></p>
  
  <p>What I would have expected was to have <code>MessageEvent.getChannel().getRemoteAddress()</code> work, which is not the case. It always gives me <code>null</code>. </p>
  
  <ol>
  <li>Am I doing something wrong ? </li>
  <li>Is there a better way for writing back than keeping the channel and remote address in some member ?</li>
  </ol>