duanfan1965 2014-09-04 20:54
浏览 34
已采纳

从不同的计算机访问应用

I have an application created in php and using MySQL for back-end. I connect to the front-end of application on my PC by typing

(http://localhost:8080/my_data/login.php)

in the browser. the database is in my computer and php files are also in my computer. i don't know how can other users can get access to the application from the browser in their pc..i am not good with networking stuff.

  • 写回答

1条回答 默认 最新

  • duanluanlang8501 2014-09-04 21:03
    关注

    (assuming windows) At your machine at a command prompt type: ipconfig to get your ip...

    specific instructions:
    click windows orb, 
    then type cmd  in text area
    type ipconfig and press enter
    line reading IPv4 Address will have an IP address x.x.x.x... use that IP address in place of localhost. 
    

    enter image description here

    Assuming others on network are within the same subnet and not have vlans and what not, it should work

    a URL uses something called DNS or a hosts file to lookup that name and translate that common name to an IP address, by specifing the IP address and port, you avoid the need for the DNS, assuming the IP address is "Routable" for the users needed to access it.

    Here's an example: Type http: //74.125.225.176 in a browser and you get google search! There's alot more to this really, but this is just the basic workings.

    enter image description here

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

报告相同问题?

悬赏问题

  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题