且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

以编程方式从iPhone向WordPress博客发布评论

更新时间:2023-11-30 13:03:52

首先,如果您在iPhone上运行的代码中使用"localhost",则"localhost"将引用 iPhone 不访问您的Web服务器.如果您拥有一个公用IP,则将服务器的IP放在那儿,否则将通过WiFi将iPhone连接到与本地服务器相同的LAN并使用该服务器的IP(我想这将是192.168.. ).

First of all, if you use "localhost" from your code running on your iPhone, then "localhost" will refer to the iPhone not to your web server. Put there the IP of your server, if you have a public IP than that one otherwise connect your iPhone via WiFi to the same LAN as your local server and use the IP of that server (I guess it'll be something like 192.168...).