CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2005
    Location
    Quebec, Canada
    Posts
    75

    Question Retrieve data sent on network to a specific IP Address

    I am trying to retrieve information sent to an IP address which is in my case an IP Phone. I would like to know if there is any free code or API calls that can let me read what's going to a specific IP address on the network so I can do something with it.
    David Richard

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: Retrieve data sent on network to a specific IP Address

    I think WireShark http://www.wireshark.org/ is what you want
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  3. #3
    Join Date
    Jul 2005
    Location
    Quebec, Canada
    Posts
    75

    Re: Retrieve data sent on network to a specific IP Address

    No, I know what Wireshark is. I do not want to sniff the network.

    Here is what I want, I want to retrieve information that tries to enter my phone to try and retrieve the phone number to do a search in a database we have here to show the customer's phone history before answering the phone.

    I want to show who is calling on the phone next to my desk which has a seperate IP address than my computer and then treat that data as I wish for internal purposes.
    David Richard

  4. #4
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: Retrieve data sent on network to a specific IP Address

    If you're not on the same wire (or at least on a non-switched net) you have to get that information from either some software inside the phone in question or from the other end i.e. the caller or some local server or similar. Either place requires that you know what OS that runs in order to know how to intercept the ip-traffic.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  5. #5
    Join Date
    Jul 2005
    Location
    Quebec, Canada
    Posts
    75

    Re: Retrieve data sent on network to a specific IP Address

    Ok, that answers my question, I'm not connected on the same wire and it won't happen. So I'll need to find another solution.

    Thanks a lot for your time in answering.
    David Richard

Tags for this Thread

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