Oh now i am ashamed. I wrote String url = "http://192.168.4.50"; where it should be String url = "http://192.168.64.50"; No wonder i couldnt ping my server from any computer. Anyway we are moving. I tested and i can ping from java program to esp8266 server, ping gets through. I still cannot read the page, now it says connection refused.
--- Update ---
I am again shamed myself. When i was testing different things i left https instead of http. Now it is working. I am sorry for taking your time, i guess i am still not alright from last nights party. Happy new year everyone