'Tkinter window with lan socket

I want to build a connection between two lan connected PC If I send some signal Like timer like 5sec then another window should close in 5 sec or like text should appear what I sent from PC1 to PC2.

root = tk.Tk()

I just got two windows I don't know how should I start with it. can anyone help me with where should I look for which topic I should go through.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source