PanjaInetAddr or hostGetNyName
John_Glove
Posts: 95
hi together
i have a code running to update every hour my mysql database.
this code works fine about more than one year....
this sunday i check the db and see no more updates. i try to update my db from the webbrowser -> it works.
in the code there is a call routine for update the db.
the call is execute every hour, then i see the following error in the diagnostic:
ClientOpen PanjaInetAddr or hostGetNyName error 0x0
so i make a button event to manually execute the call -> it works!!
it's the same call i execute, but it only works when i execute it manually?!?
i think it can't be a problem with the DNS.
any hint's?
thanks a lot
john
i have a code running to update every hour my mysql database.
this code works fine about more than one year....
this sunday i check the db and see no more updates. i try to update my db from the webbrowser -> it works.
in the code there is a call routine for update the db.
the call is execute every hour, then i see the following error in the diagnostic:
ClientOpen PanjaInetAddr or hostGetNyName error 0x0
so i make a button event to manually execute the call -> it works!!
it's the same call i execute, but it only works when i execute it manually?!?
i think it can't be a problem with the DNS.
any hint's?
thanks a lot
john
0
Comments
Here it is:
DEFINE_CALL 'UPD_RAIN'
{
cString_Regentank="'GET /rain/netlinx/insert.php?neuwert1=',ITOA(nMenge_Liter),'&neuwert2=',cQUELLE,'&neuwert3=',ITOA(nSpionProzent),'&neuwert4=',ITOA(nRain),' HTTP/1.1',13,10,'Host: ',cServer_Regentank,13,10,13,10"
IP_CLIENT_OPEN(dvSRV___RT.PORT,cServer_Regentank,80,1)
}
DATA_EVENT[dvSRV___RT]
{
ONLINE:
{
SEND_STRING DATA.DEVICE,"cString_Regentank"
IP_CLIENT_CLOSE(dvSRV___RT.PORT)
}
}
when i manually execute the call it works!
john
One time I had a similar issue and I had to set the DNS to all 0's reboot the NI, then enter it in again, and it fixed... Might be worth a shot.
But every IP Session have its local port. no port is used twice.
but i will try and send you the feedback.
thanks
john
that's it! Great!
it works now without any problems. (Strange...)
thanks so much
john
I have ran into a few routers that would do that. It seemed that it was just real passive agressive and needed to 'okay' the device before passing any dns or even a port forward in one case. stoopid computer!
My NI3000 is working about 5 years. since last sunday there was this strange problem.....
john