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 trialkarthik meduri
1,798 Pointswhat is the port and does it have same value every time???
In the previous video of "upload the website" Nick changed the port value to 18765. So how to find out the port value for other websites that we want to host???
Pedro Cabezas
9,646 PointsHey I just got my email with my DNS names from WebHostingforStudents.com and noticed they provided me with the port number as well. Nick just didn't scroll that far down to show it since it was next to the Password. So basically I was right and they are indeed the ones to provide this for you so if you have any issues you can open a ticket with them or call.
karthik meduri
1,798 PointsThank you Pedro Cabezas.... I got the clear picture now. Once again thank you for responding!!
1 Answer
Christopher Monk
1,825 PointsFrom my experience in most cases hosting services generally use the default ports, if you are given a port other than the default that port number should always be used instead. This usually occurs because of conflicts with other services that are also using the default port, or to separate traffic from that port for system administration purposes. I have run into this situation in a local environment in the past when setting up a local development environment using xampp, which had a conflict on port 80 (the default http protocol port) that occurred because Skype was also running an also using that port number.
Pedro Cabezas
9,646 PointsPedro Cabezas
9,646 PointsNormally the default port for SFTP or SSH is port 22 so that first of all can be a second option. I'm not sure if Nick did any prior administrative configurations to use port 18765 but if so then you may need to contact your web host for them to assign you a custom port. This is just an assumption though based on what I had to do with my own FTP server. If using another random port like 18766 or 187667 fail then my hunch might be correct.