R
R
rinatoptimus2014-05-04 22:46:25
Computer networks
rinatoptimus, 2014-05-04 22:46:25

How to view an application created in Ratchet on a mobile device, namely iPad mini?

The lesson says: "On Mac OS X, you can install XCode and use the iPhone simulator to see what your site will look like in Mobile Safari. alternatively, you could even just use a real phone. If it's connected to the same WiFi network as your computer, type in the IP address of your development machine along with the port you're using to develop, and you should see your site."
What is meant by development machine and where can I get its IP? (I use MAMP)
Where should I enter this IP?
How can I find out the port I'm using for development?
If possible in simple terms, otherwise I did not find information about this anywhere. Although, no, there was also:
Launch terminal
Drag your Ratchet project folder onto terminal (or cd to that directory)
Type "python -m SimpleHTTPServer" into terminal and hit return (should print something like "Serving HTTP on 0.0.0.0 port 8000 ...")
Make sure your iPhone and Mac are on the same wireless connection
Get your Mac's IP address by opening System Preferences > Network and under Wi-Fi you'll see a given IP address Enter
your Mac's IP address followed by :8000 into Safari (ie 192.168.2.5:8000)"
I typed "python -m SimpleHTTPServer" into the terminal, pressed Enter, but I did not see the message "Serving HTTP on 0.0.0.0 port 8000 ...".

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question