Vinians2006 Active Member Licensed User Longtime User Mar 21, 2012 #1 How can I verify if the internet is on and so tell the user to connect before a download for example? Thanks
How can I verify if the internet is on and so tell the user to connect before a download for example? Thanks
NJDude Expert Licensed User Longtime User Mar 21, 2012 #2 You need to use the NETWORK library: B4X: Dim sSocket As ServerSocket If sSocket.IsInitialized = False Then sSocket.Initialize(8080, "sSocket") sSocket.Close End If If sSocket.GetMyIP = "127.0.0.1" Then Msgbox("No Internet connection detected", "") End If Upvote 0
You need to use the NETWORK library: B4X: Dim sSocket As ServerSocket If sSocket.IsInitialized = False Then sSocket.Initialize(8080, "sSocket") sSocket.Close End If If sSocket.GetMyIP = "127.0.0.1" Then Msgbox("No Internet connection detected", "") End If
Jim Brown Active Member Licensed User Longtime User Mar 21, 2012 #3 See this post http://www.b4x.com/forum/basic4andr...844-internet-connection-status.html#post72396 Upvote 0