Quantcast
Channel: Visual Basic Tips and Tricks
Viewing all articles
Browse latest Browse all 2212

VB2015 Errore connessione al Router

$
0
0

Salve, come al solito ho dei problemini... mi spiego: ho questa function:

Public Function IsConnectionAvailable(ByVal S As StringAs 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 ?


Viewing all articles
Browse latest Browse all 2212

Trending Articles


HOY PANGIT, MAGBAYAD KA!


Henry el monstruo feliz para colorear e imprimir


Dama y vagabundo para pintar


Girasoles para colorear


Good Morning Quotes


RE: Mutton Pies (jameskoiman)


Hagibis (1946) by Francisco V. Coching


Ka riam ka beit bad ka por riam


Vimeo Create - Video Maker & Editor 1.6.0 by Vimeo Inc


Vimeo 3.42.1 by Vimeo Inc