title: In Erlang how to get Client's ip and port?
body: <p>In the following code , server is listening to port 2345. After accepting connection from client it returns <code>{ok, Socket}</code></p>
  
  <pre><code>start() -&gt;  
  {ok, Listen} = gen_tcp:listen(2345, [binary, {packet, 4},  
                                    {reuseaddr, true},  
                                    {active, true}]),  
  {ok, Socket} = gen_tcp:accept(Listen).
  </code></pre>
  
  <p>I want to get client's IP and port, how can I get them by analyzing socket?</p>