CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2008
    Posts
    1

    Find client's ephemeral port

    Hi,

    Please tell me how I can find the IP address and the ephemeral port number ( the port number assigned automatically by the OS on calling connect() ) that a client is using to communicate with a server. Thanks in advance.

  2. #2
    Join Date
    May 2001
    Location
    Germany
    Posts
    1,158

    Re: Find client's ephemeral port

    on client side: gethostname
    on server side: getpeername

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured