hi,
I built a web server with an ESP32. On my local network this server has the IP address 192.168.1.80
I use noip for dynamic DNS (test-b4i.ddns.net)
on a browser I see my server with its local IP address (192.168.1.80) and with its DNS name (test-b4i.ddns.net)
with b4i app, I see the server with its IP address, but I don't see it with its DNS name
no it doesn't work with https too
I did a lot of testing and all sites are working except my personal sites using noip ddns
sites that are accessed through a browser
I'm not sure that I understand. Using this address: test-b4i.ddns.net
1. It works with the mobile Safari?
2. It doesn't work with WebView.LoadUrl?
3. Does it work with iHttpUtils2?
2. Check iHttpUtils2 in Library Manager and try with this code:
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
Try
Dim job As HttpJob
job.Initialize("", Me)
job.Download("http://test-b4i.ddns.net")
Wait For (job) JobDone (job As HttpJob)
If job.Success Then
Dim Data As String = job.GetString
WebView1.LoadHtml(Data)
Else
Dim Error As String = job.ErrorMessage
WebView1.LoadHtml(Error)
End If
Catch
Log(LastException.Message)
End Try
job.Release
End Sub
Sub WebView1_PageFinished (Success As Boolean, Url As String)
Log($"${Url} : ${Success}"$)
End Sub
Thanks, with this code my website is displayed in the WebView
2 problems remain. CSS and javascript not working in webview. (it works on a browser)
je vais essayer de modifier mon html pour corriger cela.
Thanks, with this code my website is displayed in the WebView
2 problems remain. CSS and javascript not working in webview. (it works on a browser)
je vais essayer de modifier mon html pour corriger cela.
for the css it worked immediately with the file under dirasset, but not for the javascripts
but by modifying my scripts I managed to make it work
thank you VERY VERY MUCH for your help