Showing posts with label Mac. Show all posts
Showing posts with label Mac. Show all posts

How to check whether FTP port 21 is blocked?

2 comments
The default TCP port for FTP connection is port 21. Sometimes the local Internet Service Provider blocks this port and this will result in FTP connection issues.

Here's how to, depending on your OS, check whether your ISP blocks port 21:

  • Check port 21 with a Windows OS


Click on the Start menu button, usually located on the left low corner of the screen. There is a tab called "Run". You have to click on it, in order to proceed further. You will notice the appearance of a new small window on the screen. In the text field of this window you need to type "cmd" and then press the "Enter" key. Another window will open. It is the so called "MS-DOS prompt" or "command prompt". Just type the following command in the command prompt window and press "Enter":

telnet my-domain-name.com 21

  • Check port 21 with Apple/Mac


Each Mac OS is delivered with a preinstalled terminal emulator. The terminal is a tool which allows you to execute commands from the command line. Usually, the terminal is located under your Mac HD -> "Applications" directory -> Utilities sub-directory. When the window opens, you will see a command line with a flashing cursor on it so you can start typing right away. Just type the following command and press "Enter":

telnet my-domain-name.com 21

  • Check port 21 with Linux


Open your favorite terminal emulator and execute the following command in order to telnet your website:

telnet my-domain-name.com 21

Results from the 21 port check


If the test is successful, you should receive a message like this:
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 2 of 50 allowed.
220-<<
220-#########################################################
220-Please upload your web files to the public_html directory.
220-Note that letters are case sensitive.
220-#########################################################
220->>
220-Local time is now 03:35. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.

If the welcome message above does not appear, you should contact your local ISP and ask them to unblock this port for you.

How to Restart a Mac in Target Disk Mode

2 comments
In target disk mode, your Mac computer can serve as an external hard drive that can be viewed and modified from another system. When you restart your computer in target disk mode and connect it to another computer with a Firewire cable, your Mac's hard drive will open in the second computer, where you can copy, delete and manage files. Target disk mode provides a quick way to transfer large files between computers and can also be helpful in troubleshooting system issues. This article explains how to restart a Mac in target disk mode.


  • Log on to your computer with an administrator account.

  • Open System Preferences by clicking on the icon in the dock.

  • Go to the “Startup Disk” control panel under the “System” category.

  • Click on the “Target Disk Mode” button and click “Restart” to confirm your decision.

  • Connect your computer to another computer with a Firewire cable. When your computer restarts, it will enter target disk mode and will appear as an external hard drive on the second computer.


How to flush DNS cache in Linux / Windows / Mac

0 comments
Flush dns to get a new name resolution. Also flush dns cache when you can’t access a newly registered domain name. You can simply flush your dns cache anytime to get new entry. So, Flush your dns cache now.
To flush DNS cache in Microsoft Windows (Win XP, Win ME, Win 2000, Win 98):-

- Start -> Run -> type cmd
- in command prompt, type ipconfig /flushdns
- Done! You Window DNS cache has just been flush.

How to clear DNS cache in vista.

1. Click the Microsoft Vista Start logo in the bottom left corner of the screen
2. Click All Programs
3. Click Accessories
4. RIGHT-click on Command Prompt
5. Select Run As Administrator
6. In the command window type the following and then hit enter: ipconfig /flushdns
7. You will see the following confirmation:

Windows IP Configuration
Successfully flushed the DNS Resolver Cache.


To flush the DNS cache in Linux, restart the nscd daemon:-


- To restart the nscd daemon, type /etc/rc.d/init.d/nscd restart in your terminal
- Once you run the command your linux DNS cache will flush.

To flush the DNS cache in Mac OS X:-

- type lookupd -flushcache in your terminal to flush the DNS resolver cache.
ex: bash-2.05a$ lookupd -flushcache
- Once you run the command your DNS cache (in Mac OS X) will flush.

Newer versions of MacOS X should use the following command:

type dscacheutil -flushcache