If you need to know your hostname, it will vary depending on which protocol you’re using.
When connecting via ftp, your ftp hostname will be example.com (your actual domain name)
More information can be found in our FTP Getting Started Guide
When you are running an application on the server that connects to MySQL, use ‘localhost’ (without the quotes) as your MySQL hostname.
Your server hostname can be found quite simply from directly within AMP using the following steps.
Scroll to the bottom of the AMP home page and click on Technical Details.
On this page, you will see your hostname listed, such as biz42.inmotionhosting.com
Locating your IP address can be done directly from within cPanel, listed on the left side details section. For step-by-step instructions, you may view our article on locating your shared IP.