[Home] [Groups] - Message: [Prev in Group] [Next in Group]
29382: Re: [MUD-Dev] Re: Quick question re: SSL
[Full Header] [Plain Text]
From: "Alex Chacha" <achacha@hotmail.com>
Newsgroups: nu.kanga.list.mud-dev
Date: Fri, 05 Mar 2004 17:33:09 -0800
Organization: Kanga.Nu
Adam M wrote:
> szii@sziisoft.com wrote:
>> From: ceo
>> You can get the IP address from the TCP stack on the client.
>> Then you can register "player X is at IP xxx.yyy.zzz.aaa" on the
>> server. You could also use the socket information (sockaddr_in
>> structure) to determine that information and register it.
> How, exactly, do you do this with HTTP?
That depends on who's HTTP server implementation you use. If you
are just doing sockets, then when you receive connection, you also
receive the remote IP address (sockaddr_in). If you are using a web
server (CGI, plugin, etc) then the server has a context structure it
passes or you can query that contains the remote IP address. If you
are using Mfc/Win32 then socket class has the methods to access it.
Same thing in Java sockets. The HTTP protocol rides on top of
TCP/IP and thus you can get the remote IP address.
_______________________________________________
MUD-Dev mailing list
MUD-Dev@kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev