{"id":3348,"date":"2025-11-20T11:28:19","date_gmt":"2025-11-20T10:28:19","guid":{"rendered":"https:\/\/www.xenonique.co.uk\/blog\/?p=3348"},"modified":"2025-11-20T11:28:20","modified_gmt":"2025-11-20T10:28:20","slug":"localhost-dns-woes-attempt-to-test-mobile-first-web-mac-os-z","status":"publish","type":"post","link":"https:\/\/www.xenonique.co.uk\/blog\/2025\/11\/20\/localhost-dns-woes-attempt-to-test-mobile-first-web-mac-os-z\/","title":{"rendered":"Localhost DNS Woes &#8211; Attempt to Test Mobile-First Web &#8211; Mac OS Z"},"content":{"rendered":"\n<p>Question about mobile phone testing for development:<\/p>\n\n\n\n<h1>Tale of Configuration HTTP with SSL<\/h1>\n\n\n\n<p>So I configured on my ancient now MBP with Homebrew HTTPD server with SSL. I have secured sites locally to 127.0.0.1 (localhost):<\/p>\n\n\n\n<p><a href=\"https:\/\/inye.peter.test\/\">https:\/\/inye.peter.test\/<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/zimbini.peter.test\/\">https:\/\/zimbini.peter.test\/<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/zinthathu.peter.test\/\">https:\/\/zinthathu.peter.test\/<\/a><\/p>\n\n\n\n<p>(Of course, these sites will not work &#8211; I&#8217;m meaning you. Dunny. \ud83d\ude09<\/p>\n\n\n\n<p>So in reality they map to the WLAN WIFI<\/p>\n\n\n\n<p><a href=\"http:\/\/192.168.172.24:7010\/\"> http:\/\/192.168.172.24:7010\/<\/a> (inye)<\/p>\n\n\n\n<p><a href=\"http:\/\/192.168.172.24:7010\/\"> http:\/\/192.168.172.24:7020\/ <\/a> (zimbini)<\/p>\n\n\n\n<p><a href=\"http:\/\/192.168.172.24:7030\/\">http:\/\/192.168.172.24:7030\/ <\/a> (zinthathu)<\/p>\n\n\n\n<p>I can reach all of these on my localhost Firefox\/Safari\/Chrome. I created the SSL , mkcert yadda yadda, setup httpd-vhost.conf &#8211; beautiful blue skies: I see closed padlocks and confirmation that the above sites are secure. Fantastico!<\/p>\n\n\n\n<p>Now, I want to use my iPhone and iPad to my test my websites, so I enter into the browser text panel any of these URLs:<\/p>\n\n\n\n<p><a href=\"https:\/\/inye.peter.test\/\">https:\/\/inye.peter.test\/<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/zimbini.peter.test\/\">https:\/\/zimbini.peter.test\/<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/zinthathu.peter.test\/\">https:\/\/zinthathu.peter.test\/<\/a><\/p>\n\n\n\n<p>That will not work, because it needs a local DNS(?), so I set up I thought <code>dnsmasq<\/code>* and I put in the configuration <code>\/usr\/local\/etc\/dnsmasq.conf<\/code> the following:<\/p>\n\n\n<pre>address=\/.test\/127.0.0.1<\/pre>\n<p><\/p>\n<pre>&nbsp;<\/pre>\n\n\n<p>It does not work. I then tried using DeepSeek AI a suggestion in the <code>dnsmasq.conf<\/code><\/p>\n\n\n<pre>address=\/.peter.test\/192.168.172.24\n<\/pre>\n<p><!-- \/wp:paragraph --><\/p>\n<p><!-- wp:paragraph --><\/p>\n<p>Why is this not working? Is it the firewall on Mac? No. Default MBP firewall is deactivated. Ah ha! Maybe the MacOSX DNS needs a reset.<\/p>\n<p><!-- \/wp:paragraph --><\/p>\n<pre>sudo killall mDNSResponder\n<\/pre>\n<p><!-- wp:paragraph --><\/p>\n<p>Tried to the access on the iPhone to the SSL link. Nothing. Nada.<\/p>\n<p><!-- \/wp:paragraph --><\/p>\n<p><!-- wp:paragraph --><\/p>\n<p>Yes. I added to my iPhone WIFI connection a Manual DNS slot of 192.168.172.24 (my MBP&#8217;s IP address on the LAN)<\/p>\n<p><!-- \/wp:paragraph --><\/p>\n<p><!-- wp:paragraph --><\/p>\n<p>Yes. My iPhone is on the same WIFI LAN.<\/p>\n<p><!-- \/wp:paragraph --><\/p>\n<p><!-- wp:paragraph --><\/p>\n<p>And out of love. I have no idea. KEINE AHNUNG ABSOLUT-BALLS. This is where I need PLATFORM OPERATIONS (PlatOps). Damn. I don&#8217;t work there anymore where I can slack dem ras rastas!<\/p>\n<p><!-- \/wp:paragraph --><\/p>\n<p><!-- wp:paragraph --><\/p>\n<p>How do you mobile UX guys actually test web apps. I used to sit next to many guys \/ gals who were fumbling around with 15 handsets once upon a time.<\/p>\n<p><!-- \/wp:paragraph --><\/p>\n<p><!-- wp:paragraph --><\/p>\n<h2>Available for Hire<\/h2>\n<p><!-- \/wp:heading --><\/p>\n<p><!-- wp:paragraph --><\/p>\n<p>By the way. If you want to a <strong>JAVA TECH COACH<\/strong> session, reach out to me. #JAVATECHCOACH<\/p>\n<p><!-- \/wp:paragraph --><\/p>\n<p><!-- wp:paragraph --><\/p>\n<p>My name is Peter Pilgrim, Java Champion Principal Engineer, Lead Software Developer and I am looking for next contract engagement immediately &#8211; Outside IR35 preferred. Thinking of hiring permanently (well that&#8217;s an irony) then I can do that as well with the right people, culture and benefits.<\/p>\n<p><!-- \/wp:paragraph --><\/p>\n<p><!-- wp:paragraph --><\/p>\n<p>#javachampion #TECHCOACH #java #kotlin #director #principalengineer #cloudnative #techlead<\/p>\n<p><\/p>\n<h2>References<\/h2>\n<p><!-- \/wp:paragraph --><\/p>\n<p><!-- wp:paragraph --><\/p>\n<ul>\n<li><em>DNSMASQ<\/em> <a href=\"https:\/\/wiki.debian.org\/dnsmasq \">https:\/\/wiki.debian.org\/dnsmasq <\/a><\/li>\n<li>How to <a href=\"https:\/\/tecadmin.net\/install-apache-macos-homebrew\/\">Install Apache MaxcOS with Homebrew<\/a> a Tech Admin blog article<\/li>\n<li>How to install HTTPS (not HTTP) on localhost on macOS Sequoia? Stack overflow answer<\/li>\n<li>Ethicka&#8217;s \/ <a href=\"https:\/\/gist.github.com\/ethicka\/27c36c975a5c2cbbd1874bc78bab61c4\">localhost-ssl-certificate.md<\/a> bring me solutions on Gist<\/li>\n<li>Imran Hossain (Rubab) blog post <a href=\"https:\/\/medium.com\/@rubab2020\/virtual-host-setup-with-ssl-certificate-in-you-localhost-9bd419809d1b\">Virtual Host Setup with SSL Certificate in Your Localhost<\/a> : a Medium article.<\/li>\n<li>Cecile Muller on <a href=\"https:\/\/gist.github.com\/cecilemuller\/9492b848eb8fe46d462abeb26656c4f8\">How to create an HTTPS certificate for localhost domains<\/a> &#8211; a Gist from 2019<\/li>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Dnsmasq\"> Wikipedia Dnsmasq<\/a> article<\/li>\n<\/ul>\n<p><!-- \/wp:paragraph --><\/p>\n<p><!-- wp:paragraph --><\/p>\n<p><!-- \/wp:paragraph --><\/p>\n<p><!-- wp:heading --><\/p>\n<h2>&nbsp;<\/h2>\n<p><!-- \/wp:paragraph --><\/p>","protected":false},"excerpt":{"rendered":"<p>Question about mobile phone testing for development: Tale of Configuration HTTP with SSL So I configured on my ancient now MBP with Homebrew HTTPD server with SSL. I have secured sites locally to 127.0.0.1 (localhost): https:\/\/inye.peter.test\/ https:\/\/zimbini.peter.test\/ https:\/\/zinthathu.peter.test\/ (Of course, these sites will not work &#8211; I&#8217;m meaning you. Dunny. \ud83d\ude09 So in reality they [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[174,120,17,167],"tags":[],"_links":{"self":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts\/3348"}],"collection":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=3348"}],"version-history":[{"count":10,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts\/3348\/revisions"}],"predecessor-version":[{"id":3358,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts\/3348\/revisions\/3358"}],"wp:attachment":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=3348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=3348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=3348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}