Welcome to Dream.In.Code
Getting Help is Easy!

Join 109,338 Programmers for FREE! Ask your question and get quick answers from experts. There are 960 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Making my site viewable

 
Reply to this topicStart new topic

Making my site viewable, Blah. I am an idiot

chrisman
post 22 Jun, 2008 - 12:56 PM
Post #1


New D.I.C Head

Group Icon
Joined: 22 Mar, 2008
Posts: 41



Thanked 1 times

Dream Kudos: 100
My Contributions


There are probably a ton of threads like this, but my brain is fried and the search terms I used didn't return results. Kids are over, and I want to scream.

Anyway, I have a site. I am using Apache, PHP, and MySQL. I, of course, can access my site by going to http://localhost/, but isn't there a way to use my IP address like a domain name? So I don't have to use a hosting service or buy a domain name, but just use http://x.x.x.x/?

I have a feeling I have to edit httpd.conf using Allow, Deny, ServerName, ServerAlias or something.

Yes, I am a total idiot.



PS: Will this override what my IP currently points to. Like if I type in my IP address in the URL bar, it takes me to my router's (USR) status page at http://x.x.x.x/status.asp
User is offlineProfile CardPM

Go to the top of the page


skyhawk133
post 22 Jun, 2008 - 01:27 PM
Post #2


Head DIC Head

Group Icon
Joined: 17 Mar, 2001
Posts: 14,482



Thanked 34 times

Dream Kudos: 1650

Expert In: Web Development

My Contributions


I assume you want people outside your network to be able to see your web site?

If so, first thing you must make sure if that your ISP allows inbound port 80 traffic.

Second thing is you will have to portmap your router (and port 80) to your web server.

If you're going to 192.168.1.1 (or something similar) then yes, your router will come up, but if you're going to the IP shown at http://www.WhatIsMyIP.com then you shouldn't see your router setup.

Another thing to be aware of is your ISP probably doesn't give you a static IP, so that address is going to change often (daily even).

You can get a service like DynDNS to update a host name (like yourname.dyndns.com) and it'll always map to your current IP (kind of like a domain, but I think it's free).



User is offlineProfile CardPM

Go to the top of the page

chrisman
post 22 Jun, 2008 - 06:43 PM
Post #3


New D.I.C Head

Group Icon
Joined: 22 Mar, 2008
Posts: 41



Thanked 1 times

Dream Kudos: 100
My Contributions


Yes, that's what I wanted. xD My brain is soooo fried right now.

Okay, okay.

Both going to 192.168.2.1 and my WhatIsMyIP.com IP take me to the router setup page.

And yes, my IP changes every 24 hours on average, unless I manually renew it.

I'll check that out.

Thanks!
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 9/6/08 04:41PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month