This gave the right IPadres back
return_ip = Str(PeekB(*buffer + offset) & $FF) + "." +
Str(PeekB(*buffer + offset + 1) & $FF) + "." +
Str(PeekB(*buffer + offset + 2) & $FF) + "." +
Str(PeekB(*buffer + offset + 3) & $FF)
This solution with PeekA won't give teh right IPadres.
Your helped me a ...
Search found 4 matches
- Thu Jul 03, 2025 4:22 pm
- Forum: Coding Questions
- Topic: [SOLVED]IP resolve mDNS/Bonjour/zeroconf
- Replies: 7
- Views: 452
- Thu Jul 03, 2025 3:32 pm
- Forum: Coding Questions
- Topic: [SOLVED]IP resolve mDNS/Bonjour/zeroconf
- Replies: 7
- Views: 452
Re: IP resolve mDNS/Bonjour/zeroconf
@JHPJHP
This version works better; I now receive information back, but it's incorrect.
The response length matches what it should be, but I don’t get a valid IP address in return.
This is what the debug screen shows:
Sent query to 224.0.0.251:5353
Received response length: 45
Quick parsed IP: -64 ...
This version works better; I now receive information back, but it's incorrect.
The response length matches what it should be, but I don’t get a valid IP address in return.
This is what the debug screen shows:
Sent query to 224.0.0.251:5353
Received response length: 45
Quick parsed IP: -64 ...
- Wed Jul 02, 2025 12:35 pm
- Forum: Coding Questions
- Topic: [SOLVED]IP resolve mDNS/Bonjour/zeroconf
- Replies: 7
- Views: 452
Re: IP resolve mDNS/Bonjour/zeroconf
Thank you, JHPjHP, for taking the time to look at my code!
I was hoping ChatGPT would come up with something solid, since I haven’t been able to find any example code myself—not even something using UDP in Purebasic.
I tested your code and this is what I got back in the debug window:
Sent ...
I was hoping ChatGPT would come up with something solid, since I haven’t been able to find any example code myself—not even something using UDP in Purebasic.
I tested your code and this is what I got back in the debug window:
Sent ...
- Tue Jul 01, 2025 1:12 pm
- Forum: Coding Questions
- Topic: [SOLVED]IP resolve mDNS/Bonjour/zeroconf
- Replies: 7
- Views: 452
[SOLVED]IP resolve mDNS/Bonjour/zeroconf
Some time ago, I found a script in AutoIt that resolves IP addresses, and it works perfectly. However, I’ve recently switched to PureBasic and would like to implement the same functionality, but I can’t seem to get it working.
Below, I’ve included the working AutoIt script, as well as a PureBasic ...
Below, I’ve included the working AutoIt script, as well as a PureBasic ...