A connector for connecting a host and a peripheral device is disclosed. The connector includes N pin groups and each of the N pin groups has different pin length, wherein N is a positive integer and is greater than or equal to 3. The first pin group consists of ground pins and has the longest pin length.