Finally client server communication (just simple one way client-->server comm) solved
Many thanks everyone for little bits of help here and there!
Below is what caused the block - Just in case extreme Noobs like me come around here. Veterans and averagely experienced network programmer will find this very boring. So the fix stuff below is mainly for beginners who could find themselves stuck like I was
Apart from wrongly using '0' as port number and also wrongly closing sock and servSock within the while loop, it turns out that the code I posted in the Original Post was correct. The problem was that i was turning off the wrong firewall. There were other of firewalls I wasn't aware of. - both on windows 10 and on my Android phone - maybe rightly so, otherwise these devices would be heavily vulnerable to attacks. There was also 'port-forwarding' that I also wasn't aware of until someone suggested it.
One big problem I had (and noobs like me might have) was that every time I mentioned that my computer's firewall was turned off, I was always referring to windows defender. But socket programming can run successfully with windows defender turned ON
EDIT @[member='Kylotan'], is right! I just tested again, only steps 1 and 4 are required for connection, i got muddled up with unnecessary steps 2, 3, & 5 while 'pressing every button' to fix the issue
Steps that fixed the connection problem (EDIT: With 5 steps reduced to 2 ... its not so convoluted after all. But both are still essential and step 4 - particularly- was impossible to find anywhere on the internet )
1. Port forwarding: Though slight variation between routers/ISP the principle is the same, you can watch the details here
2. Enable nearby devices to share media files via wifi on your device. On my phone its settings>>connection>>nearby devices
3. If on windows 10, go to control panel>>systems and security>>windows firewall>>allow an app or feature through windows firewall, scroll down and check the box for "wireless portable devices" and (if not already checked) "Paid wifi and mobile"
4. if on windows 10, go to control panel>>systems and security>>windows firewall
click on "Advanced settings" (on the left)
on the panel that shows up, scroll down and click on "inbound rules"
on the right of the main panel (not the panel itself), click on "New rules"
another panel shows up. Here the default check is "program". click on port. And start to enter details as it is on your "port-forwarding" details. click "next" ... and after the last entry you click "finish"
5. finally briefly change your windows network settings from private to public, then private again. At this point a dialog would pop on your mobile device requesting if you want to allow "DAFUPnP" , click ok or yes.
Finally you are ready to go - run server and client code.
With this foundation of a simple application sorted, now the journey to the deeper ends of client-server programming can begin