0

how to establish remote connection between server and remote client ?

I am making a chat application using that we can chat with person by sitting from India to America. so I built two scripts : but the problem is.. it is working only in local environment... how can I make to like real chat application? my scripts : https://code.sololearn.com/cCT0bZIgrMwS/?ref=app https://code.sololearn.com/cu8OXMrRu5Lx/?ref=app

5th Feb 2021, 1:47 PM
Ratnapal Shende
Ratnapal Shende - avatar
8 Answers
+ 1
Bind the port in the router and use your ip and not the localhost ip
5th Feb 2021, 5:35 PM
Julian Bents
Julian Bents - avatar
+ 1
You should forward the port that you use in the Client and Server and you use the IP from the Server, you can get it with ipconfig in the console or just Google (what is my ip)
6th Feb 2021, 11:43 AM
Julian Bents
Julian Bents - avatar
+ 1
Ipv4 is you ip and if this wont work try putting the port after your ip like this: 192.168.166.90:9998 And check if the port 9998 is used by other programs with the task Manager
6th Feb 2021, 7:20 PM
Julian Bents
Julian Bents - avatar
+ 1
You should try to make an xampp Server and foreword Port 80 and try to acces your ip in the Browser. And if this wont work it is not possible. Or you can try do create an domain with noip. I feel sorry for you but i dont know what else to do, i never created a Server with python ):
7th Feb 2021, 4:34 PM
Julian Bents
Julian Bents - avatar
0
Julian Bents i don't have router 😱.. can I use ngrok port forwarding ? if yes then which port should I forward in ngrok and which ip should I use in client. py and server. py please help me! I am building chat application first time.. â˜ș
6th Feb 2021, 10:19 AM
Ratnapal Shende
Ratnapal Shende - avatar
0
Julian Bents i used my ipv6 address in server and client. py and the port 9998 and I forward the port 9998 using ngrok command "tcp 9998" but when I run server. py I am getting error socket.gaierror: [Errno 7] No address associated with hostname please help me!
6th Feb 2021, 7:11 PM
Ratnapal Shende
Ratnapal Shende - avatar
0
Julian Bents still not working 😭
7th Feb 2021, 4:38 AM
Ratnapal Shende
Ratnapal Shende - avatar
0
Julian Bents okk Sir Thank you for the help !
7th Feb 2021, 5:42 PM
Ratnapal Shende
Ratnapal Shende - avatar