News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Change a Local address to a name

Started by Farabi, August 18, 2010, 12:49:23 PM

Previous topic - Next topic

Farabi

I used to wrote 192.168.1.1 for accessing my local server, I want to change it by name. How to do that?
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

jj2007

Try adding the line
192.168.1.1       www.farabi.com
to C:\WINDOWS\system32\drivers\etc\hosts

Farabi

Quote from: jj2007 on August 18, 2010, 01:14:19 PM
Try adding the line
192.168.1.1       www.farabi.com
to C:\WINDOWS\system32\drivers\etc\hosts

Thanks  :U
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

clive

If you have a half decent router that gives you the 192.168.1.1 address via DHCP, it should associate that address with the name windows gives your box.

Most routers will have a DHCP status page that will display the IP address and the box name. And it will provide name resolution based on those names/addresses.

In XP the "Computer Name" can be found here :

My Computer -> Properties (System Properties) -> Computer Name
Full computer name : boxone

Your should be able to "ping boxone" "ping boxtwo", etc and navigate explorer to them with "\\boxone", "\\boxtwo"

If you want to get an internet address for the router (so you can then forward ports to your computer, and other fun things), many of them support Dynamic DNS services like http://www.dyndns.com
It could be a random act of randomness. Those happen a lot as well.