Skip to content

Instantly share code, notes, and snippets.

@wyattdanger
Created February 13, 2012 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wyattdanger/1821337 to your computer and use it in GitHub Desktop.
Save wyattdanger/1821337 to your computer and use it in GitHub Desktop.

Open Terminal.app and type ifconfig and then hit return. You should see something like this. I've highlighted the IP

ifconfig

Then visit that IP in your web browser. You should see the same thing that you see when you visit localhost

If your phone and computer are on the same wifi network, you should now be able to access your localhost from your phone.

@trvsdnn
Copy link

trvsdnn commented Feb 13, 2012

1337 d00d... see it?!?!

@jenstrickland
Copy link

My iPhone is still not connecting to the ip address provided when I tried this. I suspect it's in my config or vhosts setup. Mystery world for the likes of me.

@trey
Copy link

trey commented Feb 14, 2012

I like your prompt.

@wyattdanger
Copy link
Author

@Blahed nope

@trey it's the "norm" theme in oh-my-zsh with the solarized palette for terminal

@trvsdnn
Copy link

trvsdnn commented Feb 16, 2012

@wyattdanger the gist id

@wyattdanger
Copy link
Author

@Blahed oh, ha! I seriously stared at the terminal output for like 5 minutes looking for 1337.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment