Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

IP Mapping - Access your computer via name instead ip

Asked Modified Viewed 2,484 times
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
asked
Super Admin

I want to share some knowledge.

I'll run this OS tutorial quick, so you know what it means. We usually connect to the WiFi modem router via 192.168.1.1 (usually that's the case for D-link, Tp-link, Netgear, other major brands).

IP Mapping is a method where you can cloak that IP with name so you can type that name instead of IP address.

Quote

In Windows Vista, 7, 8 , run notepad with admin priviledge. Open, windows/system32/drivers/etc/hosts


Quote

In MacOSX, open terminal, type in:
sudo nano /private/etc/hosts



We will have found that #127.0.0.1 localhost is inside that.
What it means is locahost is 127.0.0.1. (do not touch this ip as this is internal machine IP).

Now, here comes the fun part. Add down below the line (Change to relative IP address on your connected network):

192.168.1.1 mymodem
192.168.1.3 myserver

For Windows - hit CTRL+S (Save for Notepad)
For OSX, hit CTRL + O to writeout (not the apple key)

Next we need to flush the dns to renew it.

For windows, open comamnd, and type in: ipconfig /flushdns ,
For OSX, type dscacheutil -flushcache

Now open your browser, type "http://mymodem" - (i.e. travel to 192.168.1.1 first before hitting the internet) , so if the ip works, it will go to your modem first.

Caveats:
If you cannot connect via IP, this method will not work as it is only a mapping of IP address to name.

Credits: Domi (For helping me with the windows part).
0 replies

1 post

P
PHPar
P
PHPar 10
  • Member, joined since
  • Contributed 118 posts on the community forums.
  • Started 7 threads in the forums
answered
Member

:G
0 replies

Category Forum

General Discussion

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 2 members

2 participants

C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
P
P
PHPar 10
  • Member, joined since
  • Contributed 118 posts on the community forums.
  • Started 7 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet