mhwong
mhwong

Reputation: 21

Q: Ionic 3 - IOS Failed to load webpage with error: A server with the specified hostname could not be found

I am getting the attached error message from xcode whenever I try to run my ionic 3 project on simulator ios 11. May I know if there is anyone else getting same issue? I created a new project with blank starter template, still getting the same error message.

xcode log

UPDATE : tried with ios 9.3 simulator - same result .

UPDATE 2 : re-install xcode - same result

Upvotes: 2

Views: 1505

Answers (1)

Łukasz Błachowicz
Łukasz Błachowicz

Reputation: 11

For those that might have the same problem, and prepare doesn't work, if you use some kind of local hosts management software (like mamp) check if your /etc/hosts file is not empty (or if localhost is recognized by your machine > ping localhost). If so, reset it to:

127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost 
fe80::1%lo0     localhost

Upvotes: 1

Related Questions