Cannot access to web server via local IP address on UBUNTU 12.10

后端 未结 7 1462
无人及你
无人及你 2020-12-30 06:33

Recently I\'ve install Ubuntu 12.10 on my dev machine. also I\'ve installed apache 2.2 & Php 5.3.8 and Php 5.2.17 and MySQL. Everything works fine and I can browses my s

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-30 07:08

    in my case i work on nestjs and previously i run my project on app.listen(3001) like this first i change to this app.listen(3001,'192.168.xx.xx')

    now i want to access my project on the another computer using ip on the network (LAN) so it is now allow us to access any particular port after ip address means if i access 192.198.xx.xx then i can access the address.

    but if i append port like this 192.198.xx.xx:3001 then it not let me allow to access ip address so in this case i resolve my problem by run following cmd

    1. sudo service ufw stop
    2. sudo iptables -nvL
    3. sudo iptables -nvL|less
    4. sudo iptables -F

提交回复
热议问题