dongzhi1851 2018-07-09 06:01
浏览 37

如何通过不同的网络将用户的PC名称添加到我的应用程序中

Presently i am in intranet.I have connected to SERVER -A from my laptop and from there i was logIn to one php application running on another server(SERVER-B) which exists in same intranet. My need is i want to get the PC name of the user from php application which is running on SERVER-B. When i use $pcname = gethostnamebyaddr($_server['REMOTE_ADDR']); i am getting SERVER-A host name,but i want laptop Computer NAME,how can i get this?

  • 写回答

1条回答 默认 最新

  • dougan7657 2018-07-09 06:08
    关注

    this depends on your router... its possible you could do a ptr dns request for it manually to your router

    https://en.wikipedia.org/wiki/Reverse_DNS_lookup

    评论

报告相同问题?

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么