Jump to content
  • Advertisement
Sign in to follow this  
_nomad_

IP address question

This topic is 4408 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'm trying out something new...:) ) I wish to host webpages off my PC at home (connected through a DSL line). When I put http://localhost, I see the default page correctly (obviously). But when I use http://<ip address>, it doesn't display (not seeing my PC). I got the <ip address> from whatismyip.com. I think i'm behind NAT. I've tried no-ip.com's service, but doesn't work. I've seen people do this. how do they do it? thanks.

Share this post


Link to post
Share on other sites
Advertisement
Windows or Linux? EDIT: or Mac? Something else?

Are you behind a router or firewall?

What web server are you using? Is there an option to enable access from outside the network that you may have missed?

What is your local IP reported as through whatismyip.com and through ipconfig?

Share this post


Link to post
Share on other sites
Is the webserver configured to listen on your external ip? I'd imagine most webserver software is preconfigured to listen for connections from localhost only.

Share this post


Link to post
Share on other sites
If ou are behind a NAT/router, the IP address you were reported is basically that of the router, not your individual PC. Your PC is using a private IP address. You'll need to forwartd port 80 on the router to your PC's private address if you want all incoming web traffic to go to your webserver.

Share this post


Link to post
Share on other sites
alright got it to work...thanks forgot to forward router port to private local ip address...

thanks!

Share this post


Link to post
Share on other sites
Try ipconfig /all in a DOS prompt and look for your IP Address. If it's something like 192.168... you are most likely NAT'd and will need to change the router like Rattrap said to forward traffic on port 80 to your private IP address.

Share this post


Link to post
Share on other sites
thanks acraig.

guys, do you think it's safe that, say, i open port 9999 (for another service, say, multiplayer connection games, and this will be the server), then forward that to local IP address through the router?

will my computer get hacked by your average hacker?

the PC's got firewall and antivirus...is that enough?

thanks.

Share this post


Link to post
Share on other sites
Well, you're always at risk of a hacker, technically speaking. Being behind a router definately steps up the protection by denying incoming requests by default. However, since you want to server, therefore portforward to your box, all requests on port 80 go to your machine. This opens up your machine for DoS. This also will allow people to get into certain areas of your machine through loop holes. Honestly, the software firewall won't quite do anything since your behind the router, which is pretty much a hardware firewall. Anyways, about all you can do is to tighten up your security by encrypting things, getting the latest server software, fixing bugs, downloading patches, closing & reporting bugs/loopholes, etc...

Yea, that's all I got for now. At least, off the top of my head.

Share this post


Link to post
Share on other sites
Quote:
will my computer get hacked by your average hacker?


Quite likely you'll see lots of attempts. The "average hacker" isn't actually even a script kiddie, but instead just one of a number of worm/bot/scripts that keep trying for known vulnerabilities on all addresses on the internet.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!