Advertisement

how to contend with router issues

Started by May 26, 2004 11:11 PM
3 comments, last by Khaos Dragon 20 years, 8 months ago
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?
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]

Eric Ranaldi a.k.a RanBlade


[size=1]"Passion is what drives you to stay up until 4am fixing that bug that hardly anyone would notice...


[size=1]Passion is where great games come from, if you dont live and breathe games you shouldn't be in the games industry."


[size=2]- Dave Pottinger, Ensemble Studios



[size=1][GameDev][C++ Page][Unity Game Engine][Panda3D Game Engine][NeHe Productions][Drunken Hyena][MSDN][Beej's Guide to Network Programming]


[size=1][FreedBSD][My Site][Gamasutra][Khan Acadamey]

Advertisement
ah ok, so typically most routers come with software that allows to configure port settings? I suppose I will have to figure out where it is.
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
How to host behind a router without port forwarding.
enum Bool { True, False, FileNotFound };

This topic is closed to new replies.

Advertisement