Hello I have a very simple Twebbowser program. I want to access a device on my local network which is in the IP range 192.168.192.xxx. I can reach the device via my chrome webbrowser but the browser in the program throws the error page:
"Can’t reach this page Make sure the web address http://192.168.192.56 is correct Search for this site on Bing Refresh the page."
This is the Delphi code:
unit Main;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.OleCtrls, SHDocVw, Vcl.StdCtrls,
Vcl.ExtCtrls;
type
TForm1 = class(TForm)
txtAddress: TEdit;
cmdLoad: TButton;
WebBrowser1: TWebBrowser;
Panel1: TPanel;
cmdName: TButton;
procedure FormCreate(Sender: TObject);
procedure cmdLoadClick(Sender: TObject);
procedure cmdNameClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
End;
var
Form1: TForm1;
implementation
{$R *.dfm}
{ TForm1 }
procedure TForm1.cmdLoadClick(Sender: TObject);
begin
WebBrowser1.Navigate(txtAddress.Text);
end;
procedure TForm1.cmdNameClick(Sender: TObject);
begin
WebBrowser1.GoBack;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
WebBrowser1.Silent := True; //disable java script errors/windows...
end;
end.
Thanks for your help. Ad