Skip to main content
Known Participant
March 18, 2018
Answered

Device preview on mobile not working when using MAMP Testserver

  • March 18, 2018
  • 3 replies
  • 1013 views

Hallo, in my sites setup I'm using Dreamweaver CC2018 with MAMP as the testserver. I can preview may site on all browsers but not on my iPhone. The scan works fine but I see only a blank page. To make sure I tried it without MAMP and it shows everything fine.

Thy for any help!

This topic has been closed for replies.
Correct answer Jon Fritz

Device Preview is a great, but totally unnecessary function when you have a testing server set up.

All you need to do is browse to the machine with the testing server, followed by the site root folder name, to preview using any device/computer attached to the same network.

1. Find your machine's local IP address. There are several ways to do this found online for any given OS.
2. Once you find that address, previewing from any connected device should be as simple as adding that IP address followed by the site's folder name as stored on the server, for example: 123.45.678.91/yoursite

3 replies

samehAuthor
Known Participant
March 19, 2018

OK. Thx everybody so far.

Just for fun I checked Dreamweaver CC2015. With this the preview on my mobile works fine also MAMP.

So the problem is obviously Dreamweaver CC 2018. The URL that DW generates ist always like http://127.0.0.1:49921/preview/app/index.html

DW CC 2015 does this

http://localhost:8888/...real path to file... This works fine with the same MAMP settings

Does anybody have an ID how to change the URL generated by DW CC 2018, back to http://localhost:8888/...?

Jon Fritz
Community Expert
Community Expert
March 19, 2018

The first IP address location is cause by DW's new Live Preview. Rather than opening the local file (giving you the localhost address), DW2017 and 2018 use a framset on Adobe's servers to show your page Live as you edit. It has never worked right for me, so I don't use it, instead opting for the old Preview in Browser (now called Open in Browser in the newer versions of DW).

You can get to it by right clicking the file in the Files window, or, if your files are set as tabs in CC2017 and 18, by right clicking the named tab of the document and chooeing "Open in Browser" from the list.

There are 3 separate preview types in the latest versions of DW...

Device Preview - Relies on Adobe's servers to create a scannable QR code and runs the page through Adobe's servers
Live Preview - Again, uses Adobe's servers to show you your work
Open in Browser - The old Preview in Browser, similar to opening the file directly from within the browser itself

Jon Fritz
Community Expert
Jon FritzCommunity ExpertCorrect answer
Community Expert
March 19, 2018

Device Preview is a great, but totally unnecessary function when you have a testing server set up.

All you need to do is browse to the machine with the testing server, followed by the site root folder name, to preview using any device/computer attached to the same network.

1. Find your machine's local IP address. There are several ways to do this found online for any given OS.
2. Once you find that address, previewing from any connected device should be as simple as adding that IP address followed by the site's folder name as stored on the server, for example: 123.45.678.91/yoursite

samehAuthor
Known Participant
March 19, 2018

Thx for your answer.

I tried as you proposed but this didn't work

Jon Fritz
Community Expert
Community Expert
March 19, 2018

Make sure you are running your server under Admin rights.

1. Right click the server program icon and choose Run As Administrator.

2. Start Apache

3. Open a Command Prompt

4. Type ipconfig and hit Enter

5. The Ipv4 Address is your local network IP for your computer with your testing server

6. If your site is stored in the testing server root folder (not 100% sure which folder that is with MAMP), you should then be able to enter the IP/sitefoldername from any machine on your network.

Nancy OShea
Community Expert
Community Expert
March 18, 2018

I have found that Real-Time Preview does not work well with my local testing server either so I don't use them together. 

Nancy O'Shea— Product User & Community Expert