dongpu1879 2015-01-27 06:53
浏览 22
已采纳

在同一IP上路由2台sepparet机器

I have a shop with 2 computers and an online security camera system connected to a router.

I want to be able to host a "website" from one of the computers but it looks like the security camera is using the default port for my IP address.

The website is hosted on the computer using xampp.

What I did so far is as following:

  1. Made sure the router remembers the computer by MAC address and gives it the same IP address all the time.
  2. Forwarded that ip address of the computer to port 5000 ( didnt work ) and tried also 21 ( also didnt work)
  3. I made sure the windows firewall allows port 21 and 5000.
  4. Deleted the following line from XAMPP configuration file "httpd-xampp.conf"

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
        Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

Still not working... I'm not sure what am I doing wrong. maybe 1 router cant host more then 1 website or I don't know.. Would very much appreciate help

</div>
  • 写回答

1条回答 默认 最新

  • douzhuo8871 2015-01-27 07:13
    关注

    If you forward the request to another port, you must configure apache to listen to this other port as well. If not apache will listen to port 80 by default. See this SO question

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 iOS 自定义输入法-第三方输入法
  • ¥15 很想要一个很好的答案或提示
  • ¥15 扫描项目中发现AndroidOS.Agent、Android/SmsThief.LI!tr
  • ¥15 怀疑手机被监控,请问怎么解决和防止
  • ¥15 Qt下使用tcp获取数据的详细操作
  • ¥15 idea右下角设置编码是灰色的
  • ¥15 全志H618ROM新增分区
  • ¥15 在grasshopper里DrawViewportWires更改预览后,禁用电池仍然显示
  • ¥15 NAO机器人的录音程序保存问题
  • ¥15 C#读写EXCEL文件,不同编译