Advertisement

Is it possible..

Started by January 14, 2004 03:32 PM
7 comments, last by RanBlade 21 years ago
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]

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]

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

Advertisement
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]




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]

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.
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]

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]

Are you running a software firewall like windows XP firewall or Zonealarm?

-ddn

Advertisement
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]



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]

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





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]

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]

This topic is closed to new replies.

Advertisement