How to set up Port Forwarding on a TP-Link router
Why Stack Overflow recommends it
Stack Overflow users link it when they are building socket servers or games that work on the LAN but not over the internet and need a quick guide to opening a port on a TP-Link router.
Recommended by 2 people across 2 different months, 2021 to 2023.
What it is
A short official walkthrough from TP-Link's support channel showing how to configure port forwarding in the admin interface of a TP-Link router, using the Archer A7 as the example. It applies to TP-Link wireless routers in general.
What people said
Recommends Saunak · 2022-07 · Stack Overflow · on “How can I make my Socket server to work on WAN?”
I am creating a multiplayer game using Unity Game Engine. I created my server using Socket in C#. My server works fine on the LAN, however it doesn't work on the WAN. I learned that I need to configure port forwarding in order to make it work on the WAN. I am using a Tp-Link router, and I found a great video that helped me to setup port forwarding: [this video] Things I adjusted on my own: In the video, the person used HTTP, but I chose DNS for my Socket server. I don't really know what I should choose here. [LINK] On the client side, I changed the server IP from the IP reported by ipconfig to my router's static IP, and the server port to the port I chose while setting up port forwarding. [LINK]
Recommends Daan · 2023-06 · Stack Overflow · on “How to receive UDP packets with Python - from across the internet?”
Thanks @Obaskly. I followed this tutorial ( [this video] ) to set up port forwarding for TP Link LTE router. I also temporarily disabled the firewall. I'm still not able to receive UDP packets though. Only when the smartphone is on the same LAN as my router / PC do I receive them. N.B. the port forwarding mechanism does work in so far that when I disable it in the router settings, nothing comes through even when the smartphone is on the same LAN as the PC. So port forwarding is definitely doing something right. Any ideas?
Cites Umang Lunia · 2021-05 · Stack Overflow · on “Server implementation with python socket and port forwarding”
I've been trying to implement a server-client connection, here is my code- Server.py import socket server = socket.socket() server.bind(('', 2112)) server.listen(5) print('Server created with port 2112') server.accept() print('Connected') Client.py import socket ##Public_IP is the Public IP address of my router client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) client.connect((Public_IP, 2112)) Both Server.py and Client.py are running on my computer(server). It works just fine when I replace Public_IP with '192.168.0.143', but when I use Public_IP, it gives the following error- TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly res