-1

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

enter image description here

user741461
  • 49
  • 7

1 Answers1

-1

The problem is solved if I set a password to the device let's say '12345' I can reach the device's site with the URL http://12345:12345@192.168.192.56. The user name seems to be arbitrary for instance http://xxx:12345@192.168.192.56 would also work. Thanks to everyone who contributed here, super! Regards Ad

user741461
  • 49
  • 7