I am currently working on my app's socket security...
In a couple of servers I listen for UDP broadcasts to do a few different thingies... but I need to verify the source of the broadcast before acting on it.
WinBroadcast is the winsock control I am using...
I put a line where the comment in the code below is that read...
but these properties all came back as "" (null)
How can I tell the IP address of the broadcaster??
Thanks guys n gals....
Private Sub WinBroadcast_DataArrival(ByVal bytesTotal As Long)
Dim thestr As String
' Need code here to determine the source IP
Select Case thestr
You have to use GetData first, then check the RemoteHost and RemoteHostIP properties.
When you receive something, you'd perform the following steps:
1) Get the data sent
2) Inspect the RemoteHost/RemoteHostIP
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.
What are they?
An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
What I'm presenting in this article is the result of 2 conditions in my work area:
We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…