Results 1 to 2 of 2

Thread: [RESOLVED] Winsock, UDP-package source

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2005
    Posts
    2

    Resolved [RESOLVED] Winsock, UDP-package source

    How can I get the IP and/or MAC address from the sender of an UDP package?
    I'm using the Winsock component.

  2. #2
    Hyperactive Member
    Join Date
    Jul 2003
    Posts
    419

    Re: Winsock, UDP-package source

    wouldnt winsock1.remotehostip work? At my work, we have a wired router and wireless one (different IP's). I have made a program that logs all internet traffic...in order to tell the difference I have it add "wireless" to the record in the database if winsock1.remotehostip = '192.168.50.27'...if it's '192.168.50.1' then its the wired one.
    Code:
    If LostAngel.Tag = "Programming" then
       LostAngel.Caption = "Awake"
    Else
       LostAngel.Caption = "Dreaming of Code"
    End If

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