How can I get the host IP Address from the packet that I have received RRS feed

  • Question

  •  I have two computers one of them is a client

    and the other is a server , when the client sent a packet(http request) to the server how can the server get the host IP

    from the packet

    if the method that I should use in this case is getInetAddress please give me a short example

    because I didnot knew how can I use it and what is the parameters of this method

    many thanks for your help

    Tuesday, April 5, 2011 5:12 AM