I am building a project with PHP and run it on: http://127.0.0.1:8000
. And I want to access the server on my mobile device on this domain: http://192.168.1.23:8000
. And I try few steps below:
description:
os: MacOS Hackintosh
connection: ethenet
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet6 fe80::88a:7aab:2dc9:e424%en0 prefixlen 64 secured scopeid 0x5
inet 192.168.1.23 netmask 0xffffff00 broadcast 192.168.1.255
inet6 2001:ee0:4b7d:4560:cee:940a:6abc:bb6f prefixlen 64 autoconf secured
inet6 2001:ee0:4b7d:4560:a5e1:a14c:e7e0:15d8 prefixlen 64 autoconf temporary
inet 172.16.0.2 --> 172.16.0.2 netmask 0xffffffff
inet6 fe80::2ef0:5dff:fede:d2fd%utun0 prefixlen 64 scopeid 0x6
inet6 fd01:5ca1:ab1e:86eb:8fae:ce69:ca73:8676 prefixlen 128
inet6 fe80::27c7:438e:c55f:f5ae%utun1 prefixlen 64 scopeid 0x7
inet6 fe80::e69:1b18:7569:5a5c%utun2 prefixlen 64 scopeid 0x8
nc -v 192.168.1.23 8000
nc: connectx to 192.168.1.23 port 8000 (tcp) failed: Connection refused
What are the propblems. How can I resolve this?
User contributions licensed under CC BY-SA 3.0