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

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

报告相同问题?

悬赏问题

  • ¥20 搭建pt1000三线制高精度测温电路
  • ¥15 使用Jdk8自带的算法,和Jdk11自带的加密结果会一样吗,不一样的话有什么解决方案,Jdk不能升级的情况
  • ¥15 画两个图 python或R
  • ¥15 在线请求openmv与pixhawk 实现实时目标跟踪的具体通讯方法
  • ¥15 八路抢答器设计出现故障
  • ¥15 opencv 无法读取视频
  • ¥15 用matlab 实现通信仿真
  • ¥15 按键修改电子时钟,C51单片机
  • ¥60 Java中实现如何实现张量类,并用于图像处理(不运用其他科学计算库和图像处理库))
  • ¥20 5037端口被adb自己占了