Windows url alias
Page 1 of 1
Photish




Posts: 1236

PostPosted: Sun, 16th Apr 2006 00:01    Post subject: Windows url alias
Hi, My question is, is it possible to make a kinda url alias in windows, so for ex. when I type www.google.com in my addressbar, windows
auto-changes this to ie. 192.168.1.1 ? just an example.

The reason I need this is if I point mywebsitename.com to my ip, it works for others(outside
my router), but if I type it here, I just end up getting the front config page of my router. So all computers on the local LAN, will get to the router,
but from outside(da indianet), they get to my com, like they should...

Its a bugger changing www.mywebpage.com to localhost everytime I have to test a webpage in the browser, now you might say
I could open it direcly (ie. c:\webserver\webpage.html) but then php wont work, and thats what i primarily use.

Iv set up the router to share a single ip to all coms connected to the lan(cable and wireless) I COULD change it so the dsl-modem gives out ip to ALL clients
on the lan(and therfore get my OWN UNIQUE IP, and not have this problem),
BUT then for some odd reason, transfering between clients is limited to the net speed(not 100mbit/54mbit for wireless, its just like there is no LAN whatsoever)
wich is a pain since i got sucky upload, so thats not an option.

Thanks
Back to top
Avenger_




Posts: 658
Location: Norway
PostPosted: Sun, 16th Apr 2006 14:43    Post subject:
C:\Windows\System32\Drivers\etc\hosts

there you can change static host lookups, just like you want. Just open it in notepad or something.
Back to top
[sYn]
[Moderator] Elitist



Posts: 8374

PostPosted: Sun, 16th Apr 2006 15:24    Post subject: Re: Windows url alias
Photish wrote:
Iv set up the router to share a single ip to all coms connected to the lan(cable and wireless) I COULD change it so the dsl-modem gives out ip to ALL clients
on the lan(and therfore get my OWN UNIQUE IP, and not have this problem),
BUT then for some odd reason, transfering between clients is limited to the net speed(not 100mbit/54mbit for wireless, its just like there is no LAN whatsoever)
wich is a pain since i got sucky upload, so thats not an option.

Thanks


WHAAAAAAAAAAAAAAAATTTTT?? Seriously, that makes no sense Razz .. every computer has its own IP, otherwise the damn thing wouldnt work...

As for the actual issue, the above will only change things for your machine, if you want to change it for your entire lan you will need to setup your own DNS server, add the entry for the domain and add that to your default DNS server on either the router or each LAN machine.
Back to top
Photish




Posts: 1236

PostPosted: Sun, 16th Apr 2006 16:39    Post subject:
Avenger_ wrote:
C:\Windows\System32\Drivers\etc\hosts

there you can change static host lookups, just like you want. Just open it in notepad or something.


Thank you, that was just the thing i was looking for... changing that file requires a restart I pressume?

[sYn] wrote:

WHAAAAAAAAAAAAAAAATTTTT?? Seriously, that makes no sense Razz .. every computer has its own IP, otherwise the damn thing wouldnt work...


Sorry I was trying to be as brief as possible. What I meant is that, now my router hands out 192.168.1.x ips (lan ips) but if I tell the dsl-modem to act like as DHCP then I get "real" ips, internet ips for all clients on the LAN/Wireless, and no "internal" ips(192.168.1.x) and when that happens, like I said for some reason transfering between clients on the lan, uses the internet speed... and that sucks.


[sYn] wrote:

As for the actual issue, the above will only change things for your machine, if you want to change it for your entire lan you will need to setup your own DNS server, add the entry for the domain and add that to your default DNS server on either the router or each LAN machine.


Thank you, I will keep that in mind, but for now I only need to change it on my machine, so I dont have to change www.mysite.com to localhost in the browser everytime I have to check or recheck a php script.
Back to top
[sYn]
[Moderator] Elitist



Posts: 8374

PostPosted: Sun, 16th Apr 2006 16:59    Post subject:
Ah cool, I get what you meant Smile! If you need any help in the future with the DNS server thing, just let me know..
Back to top
Photish




Posts: 1236

PostPosted: Sun, 16th Apr 2006 17:04    Post subject:
I will Smile

Thanks alot sYn and Avenger Razz
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - Operating Systems
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group