AdvancedHMI Software
General Category => Support Questions => Topic started by: mr14 on June 13, 2017, 08:40:59 AM
-
I tried to add a simple web server element to my project but I can't access it with the web server.
I tried to change the TCP port to 8080 or 8008 but still can't access it.
-
Are you trying to view it on a remote PC or the same PC running AdvancedHMI?
-
I tried both.
Didn't work on either of them
-
Try turning off your firewall. Can you run a Wireshark capture to see if the request is received?
-
I turned off firewall. Still not connecting.
Attached is a wireshark capture file. the PC that runs the HMI is 10.10.0.105
-
There is a SYN followed by a RST, ACK which means the PC is not listening on port 8080.
Double check your SimpleWebServer and make sure TCPPort is 8080. Also check SourceForm to make sure it is set to something and AutoStart is set to True.
-
in my case, IE is working with the simple webserver, but not Chrome browser.
192.168.1.253 sent an invalid response.
ERR_INVALID_HTTP_RESPONSE
and Firefox is not rendering correctly:
<html xmlns : msxsl = "urn:schemas-Microsoft - com: xslt" meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <meta http-equiv="refresh" content="10"> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAJZCAYAAABRKlHVAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAD/4AAA/+AbLWlSoAAFdESURBVHhe7d0JmFxlmS9w1HFDUdxQFEdHHdHxeke96lzRccMZnxmRcd9GuOOoLPooegUX9CoqyA4BkU0wyDIqIIgiW0D2AIYQlrAlYQ87Coqoo+B3z1vd1amuOrV0J/3mJPnV83xJdy3nnPq+X1ed/3u2tdZaa63S2d7+9rcXTR8wwAADDDDAAAMMMMDAijDQnTeq38cCSEx80003LXvP2qdcfOk15ebb7tX0AQMMMMAAAwwwwAADDEzLwOLrbyk/OeGEVsaIrNERRMbCx+ab/59y0fwry5nzF2v6gAEGGGCAAQYYYIABBlaIgWsW39TKGh0hZK1WKmmFj0uWaPqAAQYYYIABBhhggAEGVqiBCCGROVpbQSKJfOtbu5Wzqk7W9AEDDDDAAAMMMMAAAwzMhIEf/vCYs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G95u58z5P0fu3PZuPW+Lym7blk9d9NoO5fvjTBuY++z83WDX9sai9b0q7bl7HJixzwGPTZz/dnksbZsxp0BBhhggIGZNtBa4b/ujnJuFUBWRltYzTuWof0+2wHk3EtvrJanf4sV/AcffHDkFs8/q1rZHzbdheOBqHN5Fl5/R3X18hvK2QuuH/u//fOCKrRVLUJIXSCK+/Y95Ed9Hzvi+DmtAHL2+HTGAlJ1ocZqPtHi/ph3Z//089ATQC66+tYyrLWCxN89ppz1orXLyS98XDnuBWNbN07Z88nV1o6Pt1oEjz/Pe1358wUvLn8+55ll1qeq51fPGTjtcw4rH95y5/K5qs0euhyntALIbucMX95h72fmHu9cxn7L2/ucD2/Z730tKLtVjy17fOp9cOL+O0/qsxP3/3QVLg4rJ3b19+wdqtCxwykT49X5+6DHZq4vmzzOls24M8AAAwwwkGEgVm4XXnf70BXzYSvu0338ivEV7PZ7bS1Pdd95l900sMXK/Z/+9KeRWzx
-
This header seems to work fine for Google Chrome on port 80:
Dim header As String =
"<html xmlns : msxsl = ""urn:schemas-Microsoft - com: xslt"" meta content=""en-us"" http-equiv=""Content-Language"" /> " & _
"<meta content=""text/html; charset=utf-16"" http-equiv=""Content-Type"" /> " & _
"<meta http-equiv=""Content-Security-Policy"" content=""Upgrade-Insecure-Requests"" /> " & _
"<meta http-equiv=""refresh"" content=""" & CStr(m_RefreshTime) & """> "
It can be used to replace the current header inside Private Sub ConnectionAccepted(ar As IAsyncResult).
It didn't work on port 8080.
-
Hi Godra !
Is there a possibility to view it on a IPhone or android ?
-
Google Chrome is available for both platforms.
I tried it on Android tablet and it worked fine.
-
Maybe it's an apple issues , works fine on computer but still get ERR_INTERNET_DISCONNECTED when browsing with my phone..!
*Tested with a co worker android and it works fine , apple again... ::)
-
It could be the limitation of the Apple mobile hardware but maybe Google Developers might need to look into it as well.
For those who have access to an iPad or mac computer, they might test this just to eliminate the iPhone as the cause.
All the SimpleWebServer component is trying to do is serve a simple image to a browser.
Alternatively, one could try a different browser, an example of which could be: https://www.mozilla.org/en-US/firefox/mobile/
-
Yeah I’ve tried firefox , Microsoft Edge , puffin whith no succes..!
-
There is also another header in this topic: https://www.advancedhmi.com/forum/index.php?topic=2399.msg14351#msg14351
Whatever works for any particular setup...