How to test locally hosted websites on mobile?

  • Thread starter Thread starter Darkmisc
  • Start date Start date
  • Tags Tags
    Mobile
Click For Summary

Discussion Overview

The discussion revolves around the challenges of testing a locally hosted website on a mobile device. Participants explore various technical issues related to network configurations, IP address types, and browser capabilities, focusing on both theoretical and practical aspects of accessing local servers from mobile devices.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Exploratory

Main Points Raised

  • One participant describes their attempts to access a locally hosted website using an IP address and port, encountering a timeout issue.
  • Another participant questions whether the IP address is public or private, noting that private addresses (like 192.168.x.x) cannot be accessed from outside networks.
  • There is a query about whether the mobile device is connected via cellular data or local Wi-Fi, with confirmation that it is using Wi-Fi.
  • A participant explains that accessing a local subnet from a carrier's network is not possible by design, suggesting that the solution may depend on various factors including the phone, carrier, and router.
  • Some participants mention browser features or extensions that may assist in testing local websites on mobile devices, though specifics are not clearly recalled.
  • One suggestion involves creating a test folder on an existing website to upload files for inspection, indicating a workaround for testing purposes.

Areas of Agreement / Disagreement

Participants generally agree that accessing a locally hosted website from a mobile device presents challenges due to network configurations, but no consensus is reached on a definitive solution. Multiple competing views and suggestions remain regarding how to approach the problem.

Contextual Notes

Limitations include the potential misunderstanding of IP address types, the specific configurations of devices and networks, and the lack of clarity on which browser tools may be effective for testing.

Darkmisc
Messages
222
Reaction score
31
TL;DR
I've tried testing a locally hosted website on my phone by entering [My_IP_Address]:[PORT]. It won't load and just says "[IP_Address] took too long to respond".
Hi everyone

I'm trying to test a locally hosted website on my phone, but it won't load. I typed "ipconfig" into my cmd to get the IP address and then entered [IP_Address]:[PORT] into the browser. I've tried this a few times and all it says is "[IP_Address] took too long to respond". I've pinged the address on my computer and it responds fine.

I've also tried using a different port and adding a new rule for the port in Windows Defender.

Does anyone know what else I could try or what the issue might be?


Thanks
 
Technology news on Phys.org
Is your IP address public? If "locally" means 126.168.x.x you will not be able to get at it from outside, and your phone may well be on the outside network.
 
  • Like
Likes   Reactions: Darkmisc
Is the phone using cellular data or your own local Wi-Fi network?
 
  • Like
Likes   Reactions: Darkmisc, FactChecker and Vanadium 50
Vanadium 50 said:
Is your IP address public? If "locally" means 126.168.x.x you will not be able to get at it from outside, and your phone may well be on the outside network.
I think it's private. It fits this description:
  • A 192.168.0.0 to 192.168.255.255 range, which is a 192.168.0.0 network masked by 255.255.0.0 or /16
Is there any way for me to test my page on a phone? I'd like to test if I can click on a phone number to make a call.
 
jtbell said:
Is the phone using cellular data or your own local Wi-Fi network?
It's using my wifi.
 
You have an IP address on your local subnet. There is no way to see that from your carrier's network - by design. What your options are depends on your phone, your carrier, your plan, your router and maybe more. While the problem is simple, the solution is not.
 
  • Like
Likes   Reactions: Darkmisc, FactChecker and Borg
Some browsers offer a feature to do this. But I can't remember exactly how to do it!
Some web developer browser tools include the option, and again my brain is not reminding me which ones do it!
Try googling these clues.
 
  • Like
Likes   Reactions: Darkmisc
Firefox and Chrome extension Web developer by chrispedrick.
View responsive layout.
Think that works.
 
  • Like
Likes   Reactions: Darkmisc
If the above doesn't work, and you have an existing website, create a folder called test on the existing site and just upload the current files to that folder to inspect the results.
 
  • Like
Likes   Reactions: Darkmisc and FactChecker

Similar threads

Replies
3
Views
1K
Replies
4
Views
3K
  • · Replies 35 ·
2
Replies
35
Views
7K
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
Replies
3
Views
2K
Replies
23
Views
51K