How do I get the local IP address of the server using PHP?

后端 未结 7 1056
不思量自难忘°
不思量自难忘° 2020-12-31 14:21

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

相关标签:
7条回答
  • 2020-12-31 15:21

    Try using "ifconfig en1 inet" Command.

    print_r(exec("ifconfig en1 inet"));

    Output:- inet 192.168.. netmask 0xffffff00 broadcast 192.168.*.255

    0 讨论(0)
提交回复
热议问题