我需要检索用户的IP.我的localhost将::1作为IP 返回.我很好奇,如果这是预期的行为?我在Snow Leopard上运行MAMP.
::1
php sql-server localhost
localhost ×1
php ×1
sql-server ×1