Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

port issues

when I try to run apache, I get the message that Skype is using port 80 as well as an ssl port. do I need to change both? does it matter which ports I use for apache? I read the other answers in the forum, but they didn't quite address this.

thanks!

2 Answers

By default Skype listens on a random high numbered port, if there is an issue with listening on that random port then Skype will listen on port 80 & 443 to get around issues with some firewalls.

However if you are running a web server it will conflict with Skype.


How to turn off this Skype feature:

  • Start Skype
  • Tools Menu
  • Options --> Advanced --> Connections
  • Uncheck Use port 80 and 443 as alternatives for incoming connections
  • Quit Skype
  • Re-open Skype

for more details: http://www.mydigitallife.info/disable-skype-from-using-opening-and-listening-on-port-80-and-443-on-local-computer/

Thank you, that worked! Can you tell me more about ports? How many are there? Can I just pick a random one? Should I read something else about them so that I can deal with these issues in the future?

Thanks,

srs

Can you tell me more about ports?

This video is a good very basic intro to what port and how does it work

How many are there?

There are 65,535 ports

Can I just pick a random one?

In most every case no, there are assigned port numbers, like web servers (like XAMPP) are port 80 and secure web servers are port 443.

Skype is an exception to this general rule you can pick any port number between 1024-49151.

thank you! I will watch that video.