[En-Nut-Discussion] How to get client's IP address in http server application?
Harald Kipp
harald.kipp at egnite.de
Thu Nov 28 10:15:03 CET 2002
Hi,
You can get the peers ip with ts->so_remote_addr. Of
course, the connections needs to be established.
Please look to the socket list of the httpd example.
It lists all connections with the peer's ip and port.
Harald
At 19:54 26.11.02 +0900, you wrote:
>Hello.
>I have some questions.
>
>I want to get a client's "IP address" in http server application.
>
>I think that "Socket list" in "httpd sample program" probably becomes a hint.
>But, the movement of the program is different from the movement which I
>expect.
>
>Why can't I get client's "IP address" with "ts->so_remote_addr" in the
>program?
>(I could get Nut/OS "IP address".)
>I want to do a thing like getpeername() personal computer's function.
>
>Sincerely Yours
>
>-----------------------------
>Norio Onda
>n.onda at kansai-center.ac.jp
>_______________________________________________
>En-Nut-Discussion mailing list
>En-Nut-Discussion at egnite.de
>http://www.egnite.de/mailman/listinfo/en-nut-discussion
More information about the En-Nut-Discussion
mailing list