configure router

fanfalveto

Active Member
Licensed User
Longtime User
B4X:
WebView1.LoadUrl("http://192.168.1.1")
says Protected Object ,not show msgbox with username and password.
Any idea?thanks
 

Mark Read

Well-Known Member
Licensed User
Longtime User
If you are also in the local network and have a windows PC, you can download Ipscan22

LINK.

This will show all PC's in the network. You could also try http://localhost just to see.
 
Upvote 0

fanfalveto

Active Member
Licensed User
Longtime User
thank i know,but i want conect to router with phone
B4X:
Sub Process_Globals
    Dim Socket1 As ServerSocket
End Sub

Sub Globals
Dim extras As WebViewExtras
   Dim WebView1 As WebView
   Dim p As Phone
   Dim sb As StringBuilder
End Sub 

Sub Activity_Create(FirstTime As Boolean)
    Socket1.Initialize(0,"Socket1")
   WebView1.Initialize("WebView1")   
WebView1.JavaScriptEnabled=True
Activity.LoadLayout("web")
Socket1.Listen
sb.Initialize
WebView1.LoadUrl("http://192.168.1.1")
Msgbox(Socket1.GetMyIP, "")
p.Shell("ping -c 1 192.168.1.1",Null,sb,Null)'router
Log(sb)
p.Shell("ping -c 1 192.168.1.34",Null,sb,Null) 'pc ip
Log(sb)
End Sub
ping to router is ok,but i can´t see in webview and ping to mi pc don´t works.
Thanks
 
Upvote 0

fanfalveto

Active Member
Licensed User
Longtime User
i don´t understand that
B4X:
dp.Shell("ping -c 1 192.168.1.1",Null,sb,Null)
Log(sb)'ok router
p.Shell("ping -c 1 192.168.1.34",Null,sb,Null)
Log(sb)'don´t runs to pc windows7
p.Shell("ping -c 1 192.168.1.33",Null,sb,Null)
Log(sb)'ok tablet with android
all from phone
 
Upvote 0
Top