Home AMX User Forum NetLinx Studio

PanjaInetAddr or hostGetNyName

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

Comments

  • bcirrisibcirrisi Posts: 148
    Can you post some code?
  • bcirrisi wrote: »
    Can you post some code?

    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
  • bcirrisibcirrisi Posts: 148
    Do you have any other IP devices on the system that might be trying to go on-line at the same time?

    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.
  • bcirrisi wrote: »
    Do you have any other IP devices on the system that might be trying to go on-line at the same time?

    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
  • bcirrisi wrote: »
    Do you have any other IP devices on the system that might be trying to go on-line at the same time?

    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.

    that's it! Great!

    it works now without any problems. (Strange...)

    thanks so much

    john
  • DHawthorneDHawthorne Posts: 4,584
    I was wondering if it wasn't some screwball DNS issue, but wasn't sure enough to speak up on it. You can get some strange things in that arena. I had a master (NI-300, as I recall) that would not communicate with the outside world. Local stuff, fine, but anything WAN, no way. I double-checked, triple checked my IP and DNS settings, and they were fine. On a hunch, I set them to DHCP, rebooted, then went back in and set them exactly the way they were before ... and it worked. Go figure.
  • ericmedleyericmedley Posts: 4,177
    DHawthorne wrote: »
    I was wondering if it wasn't some screwball DNS issue, but wasn't sure enough to speak up on it. You can get some strange things in that arena. I had a master (NI-300, as I recall) that would not communicate with the outside world. Local stuff, fine, but anything WAN, no way. I double-checked, triple checked my IP and DNS settings, and they were fine. On a hunch, I set them to DHCP, rebooted, then went back in and set them exactly the way they were before ... and it worked. Go figure.

    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!
  • ericmedley wrote: »
    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
Sign In or Register to comment.