[En-Nut-Discussion] How to get client's IP address in http server application?
Norio Onda
n.onda at kansai-center.ac.jp
Thu Nov 28 11:13:50 CET 2002
Hello, Harald.
Thank you for your answer.
> You can get the peers ip with ts->so_remote_addr. Of
> course, the connections needs to be established.
Yes, Of course I decided a connection.
> Please look to the socket list of the httpd example.
> It lists all connections with the peer's ip and port.
Yes, I watch "sockets.cgi" (Show Threads) page.
And, it is indicated as follows.
Handle Type Local Remote Status
28EB TCP 0.0.0.0:80 0.0.0.0:0 LISTEN
3422 TCP 172.16.0.166:80 172.16.0.166:3466 ESTABL
Test environment:
Local(Nut/OS):172.16.0.166
Remote(Windows98):172.16.0.111
Net Mask:255.255.0.0
Nut/OS version:nut252
Why I can't get IP address of the personal computer in the remote IP address item?
I'm fortunately get your help.
-----------------------------
Norio Onda
n.onda at kansai-center.ac.jp
More information about the En-Nut-Discussion
mailing list