• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

getpeername problem

Hola,
I am trying to figure out which IP address is connecting to my socket (INADDR_ANY
is currently used).
From a database I will then decide if this ip address and the corresponding user name
is allowed to connect. Is this possible in 9x/NT ??? I thought getpeername is useful but
it's not working in 95 and NT.
Thanks a lot !
Markus
0
boyracer
Asked:
boyracer
1 Solution
 
fasterCommented:
Do you mean your application is a server and want to decide the client's IP? If so, the accept() will return you the information
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now