CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 1999
    Location
    Germany
    Posts
    8

    How can I determine the IP address of a socket connected to my ServerSocket object ?

    Hi there,

    how can I determine the IP address of a socket connected to my ServerSocket object ?

    Bye
    Axel


  2. #2
    Join Date
    Sep 1999
    Location
    Madurai , TamilNadu , INDIA
    Posts
    1,024

    Re: How can I determine the IP address of a socket connected to my ServerSocket object ?



    Socket client = serverSocket.accept();
    System.out.println( client.getInetAddress().getHostAddress());





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