I think this is working now. I created a sychronis connection.
Yes, now it works and I cleaned up the code a bit. Still more cleaning to do
Changed ip back