I am developing a PHP application that will be run only on the local network of a business. The application will be installed to the server using a custom installer like thi
Try using "ifconfig en1 inet" Command.
print_r(exec("ifconfig en1 inet"));
Output:- inet 192.168.. netmask 0xffffff00 broadcast 192.168.*.255