wuxiaolin
V2EX  ›  PHP

php如何获取tcp的ip呢

  •  
  •   wuxiaolin · Oct 7, 2012 · 3647 views
    This topic created in 5053 days ago, the information mentioned may be changed or developed.
    今天经理过来询问了一个程序的内容,里面涉及到客户端IP的获取,然后他说需要获取TCP的IP,这样才能确保准备什么的,php可以怎么来获取呢
    1 replies    1970-01-01 08:00:00 +08:00
    aveline
        1
    aveline  
       Oct 7, 2012
    $_SERVER['REMOTE_ADDR']
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   837 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 20:59 · PVG 04:59 · LAX 13:59 · JFK 16:59
    ♥ Do have faith in what you're doing.