Jump to content
  • Advertisement

Archived

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

Is it possible..

This topic is 5239 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have looked on google and through the forums here for the last few hours and havent found anything that answers this question outright. Is it possible to have a server running behind a NAT and having outside clients connect? I would take the NAT off if it was my choice. but I cant and I want to contiune with learning network programming and applying it but I need to be able to allow people outside my network to connect. if all I have to do is port forward then I dont think my router works as intented because I have set all htat up. somene suggested upnp but that wont install properly on my machine. Is there something special I have to do to my code to make it work? or is it just not possible to be the server behind a NAT? thanks for the help.

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][Mage Tower Ent-My Site]

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
With port forwarding it should be no issue. You''ve essentinally opened those ports directly to your machine as if you didnt have a router. You should look into it again, as thats your best option.

-ddn

Share this post


Link to post
Share on other sites
thx. I figured as much. Iam begging to think that my ISP may be blocking all ports but I cant find there TOS. Ill keep looking thanks for the help though

EDIT: dslreports.com had a port scan ... says my ports are not open bah. thx again for the help


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][Mage Tower Ent-My Site]

[edited by - RanBlade on January 14, 2004 5:44:06 PM]

[edited by - RanBlade on January 14, 2004 5:44:18 PM]

Share this post


Link to post
Share on other sites
quote:
Original post by RanBlade
thx. I figured as much. Iam begging to think that my ISP may be blocking all ports but I cant find there TOS. Ill keep looking thanks for the help though

EDIT: dslreports.com had a port scan ... says my ports are not open bah. thx again for the help


[edited by - RanBlade on January 14, 2004 5:44:18 PM]


Does it say they are not open (closed) or does it say they are stealthed? If it reports that they are simply closed then your ISP is not blocking those ports, since the scan *did* get a response, the response was simply one that said nothing was listening on that port. If it says they are stealthed you might still be ok, since it could be the NAT stealthing the ports for security or performance reasons.

Share this post


Link to post
Share on other sites
dslreports.com said I had one open port.. which was not the port I tried opening with my router... this is what it siad

TCP default : CLOSED We received a response packet that no service is available.
TCP NotThePortIwanted : OPEN The port is open. //infact I didnt even specify to open this one its just open.
Read [4]

TCP 80 : FILTERED No response packet was received.
Read [10]

UDP ALL : FILTERED No response packet was received.

So i figured my port was closed.



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][Mage Tower Ent-My Site]

[edited by - RanBlade on January 14, 2004 6:25:02 PM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Are you running a software firewall like windows XP firewall or Zonealarm?

-ddn

Share this post


Link to post
Share on other sites
no i disabled all that the day I got XP on the box... I dont even have my firewall on my router up atm and it still not getting through



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][Mage Tower Ent-My Site]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
closed means he port is visible, but no service is responding to a connection request to that port. Unless your running the server at the moement, that is to be expected. What you dont wnat to see, is stealthed or blocked, after forwarding the ports.

So its working, you now need to do now is run a service on that port, your server for example.

The other open port is proably 153 or some standard windows port, you might want to stealth or block that.

Good Luck!

-ddn

Share this post


Link to post
Share on other sites
Thx for the replies ddn. I had my server running at the time of that scan. and yes that port is a windows standard port. I have come to the conclusion my router dosent open ports properly. Thanks for all the help though guys.



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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!