Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This is a technical setup question regarding server-side swift (Apple\'s program

ID: 3866977 • Letter: T

Question

This is a technical setup question regarding server-side swift (Apple's programming language).

I have currently got a swift package with kitura dependency on a ubuntu 16.04 machine, which starts a server. (accessed through ssh on mac)

I have followed this course from Udacity: server-side swift, and I have reached lesson 1 part 11 but I am now stuck.

I am unable to open `hostname:8080` on my mac host, which is how I have setup the port in my main.swift using Kitura.

I think this is because it is a localhost. I have tried following suggestions here: https://superuser.com/questions/1119701/how-to-access-server-running-in-virtualbox-from-the-host

But I can access server via browser on guest through http://10.0.2.15:8080. I have setup port forwarding in VirtualBox, with NAT adapter.

Only on host I cannot access this.

Please help me.

Explanation / Answer

This was earlier happening with me too and hence I researched and found that behind the proxy by default there is only the *.local and it is excluded. Hence, we are required just to add localhost and the 127.0.0.1 for avoiding the DNS resolutions on the local machines.

The only solution is to put *.local, localhost ,127.0.0.1 into the below given setting dialog:

System Preferences/Network/Advanced/Proxies/Bypass proxy settings for these Hosts & Domains.

If the above does not work,

Please rate the answer if it worked........Thankyou

Hope it works.....

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote