Question

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

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.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

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,

  • The default for an web server is the port 80 and the web server is not listening on the port 8080. Hence, if you want to listen on the port 8080 there you go,
    • Edit /etc/httpd/httpd.conf
    • Restart Apache

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

Hope it works.....

Add a comment
Know the answer?
Add Answer to:
This is a technical setup question regarding server-side swift (Apple's programming language). I have currently got...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT