Chat program wont work through my router (NAT)
Posted on 2003-02-28
OK, i am building a direct chat program (use ip to connect) and i cant get it to work on my comp, most likely because of my router and NAT.
I am using TClientSocket, and TServerSocket. I can connect to myself (127.0.0.1), but when someone trys to connect to me it gets an asynchronous socket error or something like that and it wont connect, but i can connect to them. I have an assigned ip address by my router 192.168.2.34, then a WAN IP from the DSL, i have tried the external ip but it just wont work. Is there any way to get around this, shouild i use a different component, or what?? Bah, i just want it to work.