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

HTML How to Make a Website Sharing a Website Upload the Website

Aldo Merino
Aldo Merino
6,066 Points

Port number

Can someone explain me why did we chosse the port number "18765"? there is a reason for? or i can pick any other port number? and what is the function of this port number?

2 Answers

James Barnett
James Barnett
39,199 Points
  • Nick instructs you to connect via SFTP
  • Now the question is, which port have the people at your web host configured to be used with SFTP
  • To know that, you will need to consult their documentation
  • In the case of Web Hosting for Students, their FAQ has the answer ...

> HOW DO I CONNECT WITH SFTP?

> To connect with SFTP, use your normal login credentials, then set the port to "18765"


This assumes you purchased your hosting through http://webhostingforstudents.com/ as Nick did in the pick a web host video.

If you purchased your hosting through a different company, then the port you use to connect via SFTP it will most likely use a different port and you will have to consult the documentation for that company.

Aldo Merino
Aldo Merino
6,066 Points

So the port used is to connect to the host server? meaning that using diferent port result in a failure to connect? where did he got the port number?

James Barnett
James Barnett
39,199 Points
  • > So the port used is to connect to the host server?

To connect to a server you need 2 things ...

  • a fully qualified domain name (an IP address works as well)
  • a port number

    • > meaning that using diferent port result in a failure to connect?

Yes

  • > where did he got the port number?

https://webhostingforstudents.com/faq/

Aldo Merino
Aldo Merino
6,066 Points

Thx for your patience! i am sorry if my questions where dummy but i just wanted to know why of the port number. and again thx a lot!