Bir Android istemcisinde DDNS (No-IP) güncellemeyi denerim.Android DDNS güncelleştirme URL'si
Aşağıdaki URL'ye bir istekte bulunuyorum.
http://username:[email protected]/nic/update?hostname=mytest.testdomain.com&myip=1.2.3.4
(Discription) benim webbrowser kullanıyorum, her şey gayet iyi çalışıyor.
"good [ip-address]"
Ama android istemci yalnızca yanıtı http://www.noip.com/integrate/request itibaren "nochange"
URL url = new URL("http://" + USERNAME + ":" + PASSWORD + "@dynupdate.no-ip.com/nic/update?hostname=" + HOSTNAME + "&myip=" + IP_ADDRESS);
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("GET");
int i = conn.getResponseCode();
stringBuilder = new StringBuilder();
bufferedReader = new BufferedReader(new InputStreamReader(conn.getInputStream(), "UTF-8"));String line;
while ((line = bufferedReader.readLine()) != null) {
stringBuilder.append(line + "\n");
}
Kullanıcıya ekleme ekinin bir etkisi yoktur, sorun hala devam etmektedir. Android tarayıcı ile requst yapmaya çalıştım ve her şey iyi çalışıyor (tarayıcının kendi kullanıcı aracısı olduğunu düşünüyorum) –
@JohnnyCash, Bu durumda, başka neyin yanlış olabileceğine dair bir fikrim yok, üzgünüm – JonasCz