Archived

This topic is now archived and is closed to further replies.

Khaos Dragon

how to contend with router issues

Recommended Posts

My server-client system, all of which is written in winsock, works perfectly on my own computer, but when I try to test it by having friends run the clients on their remote machines, it doesn''t work. I have figured out the problem, and it is related to my computer being behind a router. Now when I check my IP address using IP config my computer thinks it is of a certain IP address of course. However, when I check my IP address via a web cgi script it gives me the IP address of the main computer directly connected to the DSL line (where mine is connected via the router). So I am guessing that the IP address I get via IP config has nothing to do with the actual internet and is just with respect to the local network in my house. However, when I use the IP address of the main computer, the server does not work at all, and yet somehow the client needs to send his information through that IP. I have no idea what to do, will I eventually just have to serve off a computer directly connected to the internet?

Share this post


Link to post
Share on other sites
You will have to port forward via your router... So that way anytime a client tries to access your outside network IP with that port it knows to send it to the secondary computer...



RanBlade
"Passion is what drives you to stay up until 4am fixing that bug that hardly anyone would notice...Passion is where great games come from, if you dont live and breathe games you shouldn''t be in the games industry." - Dave Pottinger, Ensemble Studios

[GameDev][C++ Page][Game Tutorials][FreeBSD][HawkNL(Hawk Network Library)][NeHe Productions][Gamedev book''s]
[Virtually Online-Books][Drunken Hyena][MSDN][Beej''s Guide to Network Programming][Mage Tower Ent-My Site]

Share this post


Link to post
Share on other sites
The software should be in the router hardware. You can access the router via your web browser (usually address 192.168.1.1) and there''s a good chance you can use a web-based configuration scheme. If all else fails, you can Telnet your router and configure everything in a text-based environment. You''ll have to know the manufacture password though, which varies from brand to brand. Consult the manual

Share this post


Link to post
Share on other sites