So I made a chat program with connections codes like these
Client
Server
Now it works perfectly fine with LAN
But for the love of god I can't figure out why WAN is not working
Now I know that everyone at this point is blaming the firewall or port forwarding but ! I've done all that correctly and here's the proof ! When I use a port check tool to check if the server is up the server crashes cause I didn't place a try catch block to handle unknown requests yet !
And if your thinking maybe it's the DNS no it is not I entered the host address there and it still connects to the server ! Plus I checked with the autos the address it's trying to connect is indeed my IP ! How weird is that !!! I have been looking at my code for hours now... please help