Getting Web Site From Lan On To Internet

Discussion in 'Silicon (v)Alley' started by mr man fan, Jul 24, 2014.

  1. #1 mr man fan, Jul 24, 2014
    Last edited by a moderator: Jul 24, 2014
    Alright all,
     
    So I know how to basically create a little page and add it to a web server. The missing link in my comprehension is how to then get this website from just being able to be accessed locally on my home network to being able to access it online.
     
    How is this done, generally? Just a conceptual overview or a point in the right direction would be fine - from there I can work out the specifics...I assume a domain name has to be purchased or something but beyond that is it free if you host it yourself? 

    I tried looking it up etc but I don't think i'm even wording my searches right so I thought i'd just see if the city could point a brother in the right direction...Any help much appreciated. 
     
  2. Port forwarding.

    Open port 80 to the LAN ip of the web server. Then you can access the website, remotely, using the wan ip of the web servers public network (goto ipchicken.com on the server, or any device on the same LAN).

    If you bought a domain name, you can point it to the wan ip of the network that the server is on.

    That should get ya started. Or at least googling in the right direction :p
     
  3. Thanks for the response man! I have been trying to successfully forward some ports on my router so that I can access my raspberry pi over the internet using vnc viewer.

    No success yet but I'll just keep googling etc. Its annoying though - I have followed guides and forwarded some ports on my ancient router but when I test if the ports are open using dedicated software it always says that the ports are closed...

    Sent from my Nexus 5 using Grasscity Forum mobile app
     
  4. If you don't have experience doing it a lot, it can be very difficult. Is your modem, from your ISP, also a router?
    Like...
    Modem/router>>>"ancient" router>>> server and devices

    If so, you would have to forward the ports in both routers, which I won't begin to explain how to do.

    Basically, you wanna make sure there is only one router (most routers have firewalls, which block the ports).

    Kinda hard to explain. Might be easier if you post the model numbers of your equipment and explain or show how they are connected.

    FYI, I have a pi too, I was one of the people getting one that had to wait months for it, when they were first on preorder. Cool little devices.
     
  5. #5 mr man fan, Jul 28, 2014
    Last edited by a moderator: Jul 28, 2014
    Yes, my router is also a modem. Besides my computers it is the only network device and connects right in to the phone line (ADSL). I connect all of my devices via wifi to this router.
     
    ie phone line > all in one router/modem/switch > computers + phones via wifi. 
     
    The make/model of the router is a Thomson TG585 v7. Forwarding ports on this router seems fairly straight forward (according to a few guides I have found when googling) but after carrying out what should have forwarded the ports they still show as closed when tested.
    I'm just in the house again - been out the last two days - so might have another crack at it today. 

    Yeah, the Pi is pretty cool. I just decided to buy it on a whim to learn some simple linux and use as a basic file server.     

    Appreciate the help man!
     
  6. There is another thing you could try, but isn't recommended in the real world for security issues. You can enable DMZ (de-militarized zone) on the severs LAN ip. This will open ALL ports on that device. Useful for what you're doing, learning. Just make sure nothing important it on the server, so people like me will have nothing to break in for :p
     
  7. talk to a hosting company. they offer more packages then just hosting web sites on their servers. if you want others to see your website youll need to pay for the domain name and have it uploaded to public DNS servers.  if you talk to a hosting company you can get better direction. just google web hosting.
     
  8. I think this is more of an experimental learning thing. Can never learn Linux if hosting companies do it for you. But anything worthwhile should be with a hosting company.
     

Share This Page