Browse local dev site from an iPhone - node.js

I want to use a physical iPhone to test a web site I am developing without having to deploy to a public URL.
My development machine is a MacBook Air and I have it tethered to the iPhone 5S via USB. The two are unable to pair via Bluetooth (Error: "device not compatible") which I think means I cannot use Internet Sharing to access mycomputername.local from the iPhone. The Air is running Yosemite and the web server is Node.js which serves the site locally on the Air on port 3000.

Let your macbook and your iphone connect to the same LAN, then your iphone can access your macbook by its IP directly. (remember to start node server first).

Related

Can I host my angular6 web app in MacOs server?

I am newly to host the web application to server. Now I am using macOS Sierra Version 10.12.3. I developed angular6 web application. Can I setup my desktop as macOS server and host my angular web application?
Yes, you can, and not only on the Local Area Network, but on the Wide Area Network. And if you buy a domain name you can attach this name to your server. At the end of the day after you executed 'ng build --prod --aot', everything will be compiled to plain Javascripts just like any other websites regardless of any JS frameworks. Just try to look up on google about hosting a website on MacOS server.

Connecting to and syncing with localhost from android device not working

I am using the Azure Mobile App quickstart ToDoList example to get started with cross platform app. I have set up the back-end and it is working on localhost - I can hit it using Swagger and gets posts etc are working.
I then set up the client application (Xamarin.Forms). I am running the client application on my Android device and all works great when back-end is in Azure, including the offline sync element. The problem is that I have to work locally for now but I cannot sync with the db when running on localhost.
At first the debugger was giving me a "connection refused" error, so I followed the steps here and in various other sources including using my laptop IP and setting firewall rule, adding binding to port in IIS Manager and applicationhost.config, and changing ApplicationURL in Constants.cs.
Now, I get no connection refused error, but the data is not getting to the db, athough the localdb on the tablet seems to be working - it is failing when I try to sync to/from db.
Not too familiar with networking but it may be important to note that when I use localhost:portnum/tables/todoitem in browser I get results in XML but when I use 192.168.0.10:portnum/tables/todoitem I get "Bad Request - Invalid Hostname".
By default, your Mobile App .NET server backend application will run in IIS Express. This is problematic when debugging with a client application running in another device on your network, or in a virtual machine in Hyper-V (such as Windows Phone Emulator). IIS Express will host your server application under localhost, which makes the application unreachable to other devices or virtual machines. Your client application running on Windows Phone Emulator has a different meaning for localhost. The same is true for the Visual Studio Emulator (which runs in Hyper-V) and the Google Emulator.
It is simpler to configure your machine to host your Mobile App .NET server backend application on IIS, as this allows you to control the binding of the server application to an IP address, rather than localhost.
For information on this, see: https://github.com/Azure/azure-mobile-apps-net-server/wiki/Local-development-and-debugging-the-Mobile-App-.NET-server-backend

uwp nodejs local site

I build a uwp App with a webview. It loads a nodejs local site at http://127.0.01:81. When I try to load 127.0.01:81 from my uwp App, I have a blank page. When I try to load http://127.0.01:81 directly from chrome, or edge on my w10 pro tablet, it's working.
If I try the uwp App on the pc, where I build the App, it's ok.
Nodejs is correctly install on my w10 pro tablet, but there is something blocked when I try to use it from the uwp App. I try to give all the permissions to the nodejs directory, stop windows firewall, reinstall the tablet but nothing change.
Hello I have found the solution : I have activated the 'Allow local network loopback' on my w10 tab pro with 'Loopback Exemption Manager' downloaded on loopback.codeplex.com (check the app name)
On the pc where I build the app in visual studio in the propertie of the project in the 'Debug' section, the option 'Allow local network loopback' is checked. It's why it works on the pc where I build the UWP App...
you should not use the 127.0.0.1, it only will be used on the same device. in you local, you should use like 192.168....... the local ip of the device you are running on.

I want to create android app using backend has wamp server

I want to create android application in android studio.
backend database i wamp server which is stored in a computer.
And the computer and my android devices are connect via wifi router.
How to i access the wamp server from my computer to android device please
provide me a full solution to do this.
And I using windows 7 in computer my android device is dell venue 7 tablet and then i using wamp server 2.5 and anroid studio. finally my router is d-link.
my computer connected with router usign lan cable and my android device connect with router using wifi.
main thing is i want to use this app without internet.
Is it possible?
You donot need internet to connect to the server in your pc. You can do it as follows:-
Connect your device to the computer with a usb cable
Use "10.10.0.2:portnumber/test.php" in your application which points to the server in your computer. test.php is your server code to access the database.

Can you inspect element on a Samsung tablet's default Internet application

Is there any way of inspecting element on a Samsung tablet using the default Internet Application? I have some bugs that need sorting that only appear in the native Samsung / Android 'Internet' application.
Samsung Internet can be debugged remotely using Chrome on the desktop. Any pages you have open in Samsung Internet should be listed for inspection under chrome://inspect:
As Ada shared here, you can also enable port forwarding and connect to a server running on your desktop machine. You will need the Chrome app running on your desktop. If your localhost URL does not resolve, visit chrome://inspect and ensure port forwarding is enabled. You may also need to open the Chrome app on your mobile device.
Update: There is a page in the Dev Hub docs about remote debugging here.

Resources