Access InvoicePlane through different computer with same network

Hi All,

I am trying to access my invoiceplane from different computer with same network but been unsuccessful.

My settings are as follow:

  • Invoiceplane 1.4.10 (this is the one I can successfully installed)
  • Running on osx Mojave
  • XAMPP 5.6.4
  • Invoiceplane installed in subfolder http://localhost/invoiceplane

I am able to run invoice plan successfully in computer A where XAMPP installed.

I have a static ip set up at 192.168.x.x

But unfortunately not able to access my InvoicePlane on different machine in same network.

When type this on my web browsers ‘http://192.168.x.x/invoiceplane’ on computer B, and below error message appeared on chrome browser.

" This site can’t be reached
localhost refused to connect
Search Google for localhost invoiceplane index php sessions login
ERR_CONNECTION_REFUSED "

I tried safari and firefox and both failed too.

FYI, I am also running another apps in subfolder, namely openEMR, and it can both run on both computers.

In addition, I also created a test page in subfolder and I can successfully see the page.

Thanks.

OK now its sorted…

What I did was edit index.php file as mentioned here
https://community2.invoiceplane.com/t/topic/3870/8

Set my url to only subfolder, no need to add http://localhost/

I change my
define(‘IP_URL’, ‘http://localhost/invoice/’);
to
define(‘IP_URL’, ‘/invoice’);

I checked and can access my invoiceplane with 2 different computer in same network using wifi using static ip address.

computer a: h t t p://localhost/invoice
computer b: h t t p://192.168.x.x/invoice
(since as a new user here I can only put 2 links in a post, so i just put gap between http)

1 Like

Glad you sorted this out.

You should not have to change config.php,

Instead change the file ipconfig.php in your application root.

1 Like

Nice post. Thanks for sharing. It’s useful for me.

Superb… really appreciable effort.
These kind of changes always reflect in index.php, so whenever you find issue like this, always check index file first for required changes.