Share 'localhost' over home wi-fi... how?


  1. Posts : 212
    Windows 7 Professional 64bit
       #1

    Share 'localhost' over home wi-fi... how?


    I have a localhost server set up on my desktop computer that I would like to share through my home wi-fi then I can access it from my mobiles.. I have no idea how to do that though. Any clue?

    PS: My desktop computer where the localhost is has an wi-fi USB adapter.

    Thanks!
      My Computer


  2. Posts : 51,383
    Windows 11 Workstation x64
       #2

    It may help people if you explained what sort of server you are running on your localhost: web (IIS/Apache), shoutcast, file server, DLNA server.......
      My Computers


  3. Posts : 212
    Windows 7 Professional 64bit
    Thread Starter
       #3

    z3r010 said:
    It may help people if you explained what sort of server you are running on your localhost: web (IIS/Apache), shoutcast, file server, DLNA server.......
    Sorry, my bad... I am using a very simple and straightforward server called "Fenix"
    Fenix Web Server | Static Web Servers for the Desktop
      My Computer


  4. Posts : 51,383
    Windows 11 Workstation x64
       #4

    Sorry, I've never heard of that one before, hopefully somebody else will have.
      My Computers


  5. Posts : 212
    Windows 7 Professional 64bit
    Thread Starter
       #5

    z3r010 said:
    Sorry, I've never heard of that one before, hopefully somebody else will have.
    Well, actually I am an idiot because I just found that it has a 'sharing feature' that kind of works. I can see the localhost files listed on my mobile (through wi-fi) but when I tap the main HTML it hangs and after a long while I can see on Chrome debugger that it threw a couple 504 errors (I think that's because I am trying to load a .json extension file through JS). It is not a code issue as it works fine when I load it directly from http://127.0.0.1:81/. I tried to disable my firewall but had no luck.



    Would you recommend me a flexible and yet SIMPLE web server for Windows 7? My IIS stopped to work and I didn't have too much success with Apache either. I am a JS developer and am working on an HTML5 app with Phaser framework and everything I need is something to allow me to simulate an online server to test my code. Nothing fancy. Just that.
      My Computer


  6. Posts : 3,785
    win 8 32 bit
       #6

    Depending what you want to use it for there is a mini webserver which can be setup in 3 mins.tinyserver.sourceforge.net
      My Computer


  7. Posts : 212
    Windows 7 Professional 64bit
    Thread Starter
       #7

    samuria said:
    Depending what you want to use it for there is a mini webserver which can be setup in 3 mins.tinyserver.sourceforge.net
    Thank you... I tried it but unfortunately the packages seem to be all broken.
      My Computer


  8. Posts : 212
    Windows 7 Professional 64bit
    Thread Starter
       #8

    Anyway, never mind! Someone in the HTML5 Dev Forum gave me the steps to do the trick and it was way easier than I supposed... I first figured the local IP of my desktop computer running the localhost. Then it was just to type in the local IP of my desktop computer on the browsers of my mobiles and they instantly found it through wi-fi!

    :)
      My Computer


  9. Posts : 2,465
    Windows 7 Ultimate x64
       #9

    "localhost" always refers to "this computer", the one making the connection, so by using localhost you'll only connect to the very same device, no matter what (127.0.0.1 is also equivalent). From a phone point of view, your computer is no longer "local", just another server in the network.

    Just use the local IP of your computer as you've suggested (or its name could also work) and it'll work. For both your existing or any other web server.
    I very doubt it, but if some JavaScript fails when accessing remotely, it could be a broken piece of code, hardcoding localhost.
      My Computer


  10. Posts : 1,839
    Windows 7 pro
       #10

    Alejandro is correct. You have to enabling sharing on the server and access it on other computers using the server's ip and the application port. Don't forget that you might have to allow the port though windows firewall or any other firewall.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:41.
Find Us