使用 IP 地址连接到开发机器

使用 IP 地址连接到开发机器

我正在使用 Angular 和 node 完成教程。我能够在 上构建和访问我的教程站点,localhost:<port#>也可以使用 访问它们http://127.0.0.1:<port#>。我接下来要尝试的是使用 IP 地址访问我正在构建的教程站点,以便我可以从网络上的其他计算机连接到它。但是,到目前为止,我尝试过的所有方法都会导致浏览器抛出无法连接到服务器的错误。我按照 上的说明查找了 IP 地址https://tecadmin.net/check-ip-address-ubuntu-18-04-desktop/

我需要做什么才能使用开发机器的 IP 地址从网络上的其他机器访问该站点?

localhost:<port#> - works fine on the machine
127.0.0.1:<port#> - works fine on the machine
IP address (https://10.x.y.z:<port#>) - unable to connect both from the same machine and other machines

从其他机器 Ping IP 地址得到响应

到目前为止我已经尝试过:

ufw status: port shows allow

相关内容