shaiang Posted February 26, 2012 Share Posted February 26, 2012 Hi, I'm working on a mobile project, and i want to test the site on my mobile locally via localhost. I know it's possible, but how is the question? I tried to give an alias to localhost address (got this idea from some forum), but no success. Thanks. Quote Link to comment Share on other sites More sharing options...
trq Posted February 26, 2012 Share Posted February 26, 2012 localhost point to the machine your actually viewing on. So trying to view localhost from your mobile will look for a server on that mobile. You will need to access your web server via it's ip address. Quote Link to comment Share on other sites More sharing options...
shaiang Posted February 26, 2012 Author Share Posted February 26, 2012 Tried that already, but no success . I will try to forward through the router. Quote Link to comment Share on other sites More sharing options...
kicken Posted February 26, 2012 Share Posted February 26, 2012 Your only going to be able to access the server via your phone if your phone is connected to the same network using WiFi. If your using 3g or something then you wont be able to connect (unless your server has a public ip). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.