Salve, come al solito ho dei problemini... mi spiego: ho questa function:
Public Function IsConnectionAvailable(ByVal S As String) As Boolean
Dim objUrl As New System.Uri(S)
Dim objWebReq As System.Net.WebRequest
objWebReq = System.Net.WebRequest.Create(objUrl)
Dim objresp As System.Net.WebResponse
Try
objresp = objWebReq.GetResponse
objresp.Close()
objresp = Nothing
Return True
Catch ex As Exception
objresp = Nothing
objWebReq = Nothing
Return False
End Try
End Function
e gli passo il parametro (http://192.168.0.1) che è l'index del mio Router,dove richiede le credenziali.... da errore come se non esistesse..... ritornandomi False, ma in realtà esiste e come perchè se digito nel Browser il link (http://192.168.0.1) manualmente mi indirizza direttamente nel impostazioni del Router
come si spiega questo ..... ?
dove sta l'errore ?
è sbagliata la Function ?