Hi I am creating a program that does ping a website, so what I need is:
1) Know whether the site is online
2) the IP address of the server
If someone helps me I'd be really grateful. I just started programming with B4A, so I ask you spieghermi things in a simple and step by step.
Sub Check_Click
MainUrl= "http://www." & LinkSito.Text
PreviewWeb.LoadUrl(MainUrl)
Dim job As HttpJob
job.Initialize("Main page", Me)
job.Download(MainUrl)
End Sub
I do not know how to let him know if the download page has been done (so the site is up) or it is not possible to download (when the site is down).
Unfortunately I can not publish the full code, but you can safely write it if you follow the previous comments. If you have any difficulty sonoa your disposal!