REDIM Found$(1000)
Print GetLocalIP$
If you start your code with the REDIM statement, it will allow, as written, 1000 instances (elements) for the array. Without DIM or REDIM, QB64 considers the array undefined as for the number of elements to keep in memory, and therefore throws a subscript out of range error.
Pete