各位大侠。
void loop () {
ether.packetLoop(ether.packetReceive());
if (millis() > timer + REQUEST_RATE) {
timer = millis();
Serial.println("\n>>> REQ");
static char buf[20];
get_send_string(buf);
if (!ether.dnsLookup(website))
Serial.println("DNS failed");
ether.printIp("Server: ", ether.hisip);
//ether.httpPost (urlBuf, website, apiKey, buf, my_result_cb);
ether.browseUrl(urlBuf, "",website, my_result_cb);
}
}
发现无法访问URLBUF=“192.168.1.20”局域网的服务器,非得外网带域名的服务器才可以访问,请问是何原因。DNS这块LOOKUP为一个外网的服务器地址。 |