Python socket networking problem with IP
Hay friends I am beginner to python networking. And recently working on python socket module. So my question is I had created 2 file 1st). Server.py 2nd). Clint.py and you all know we need a ip to transfer data . I had used the dynamic local ip provided by ISP . Ok . It works fine when I connect my client smart phone with server smartphone through wifi then my interpreter of server ( using pydroid3 ) give the connection of Clint. But when I was trying to acces the same conectiction without wifi but I am using internet instead of wifi . Then I was fail to achieve the same connection. Now I am confused here because the code playground doesn't show any error. So my question is that what should I do . And I dont think that same connection can be done using public IP which Google tells you. So how can I fix it . You can see the source code of clint and server below in answer section. Point to noted : there is no problem with dynamic ip because I always update ip before trying connection.