Yup, its me again...
I''ve finally got everything figured out, and it works great. The only problem is with NATs (Network Address Translators).
I am on a home network, with 3 computers. Fortunately, i''m the computer with the net connection. The problem comes when i try to use my chat program (prrrfftt! if you can call it a chat program) on my sisters computer. We use windows internet connection sharing, so she can connect to the internet through my computer. The only problem with this, is that my program can only connect to the network, it isn''t aware of the interent connection sharing.
So, on to the question:
Is there any way to get the IP of a computer on the other side of a NAT? E.g. can i get my sisters internet IP?
At the moment i use gethostbyname(NULL) to get the IP addresses of the current computer.
How do most games / apps handle this?
Thanks for all the help guys, Steve
SteveDirectX ProgrammerSoon to be the new Bill Gates