主机文件是否存在于iPhone上?怎么改呢? [英] Does hosts file exist on the iPhone? How to change it?

查看:194
本文介绍了主机文件是否存在于iPhone上?怎么改呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个查询服务器的应用程序。在我的Mac中,我使用hosts文件将dns更改为指向本地局域网内的本地服务器。

I am developing an application that query to the server. In my Mac, I use the hosts file to change the dns to point to a local server within my local area network.

现在我需要用我的iPhone进行测试,问题是我的iPhone由于缺少dns的配置而无法识别该服务器。

Now I need to test it with my iPhone, the problem is that my iPhone does not recognize that server due to the missing configuration for dns.

在我的Mac或Windows上,我只需添加: 192.168.0.20 http://www.google.com 到主机文件。

On my Mac or Windows, I simply add: 192.168.0.20 http://www.google.com to the hosts file.

现在我如何让iPhone知道URL: http://www.google.com

Now how do I let my iPhone know the URL: http://www.google.com ?

请帮助!

推荐答案

这不直接回答你的问题,但它确实解决了你的问题...

This doesn't directly answer your question, but it does solve your problem...

你有什么路由器?您的路由器固件可能允许您为本地网络设置DNS记录。这是我使用的番茄固件

What make of router do you have? Your router firmware may allow you to set DNS records for your local network. This is what I do with the Tomato firmware

这篇关于主机文件是否存在于iPhone上?怎么改呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆