PHP Curl, retrieving Server IP Address

前端 未结 6 1245
迷失自我
迷失自我 2021-02-08 21:52

I\'m using PHP CURL to send a request to a server. What do I need to do so the response from server will include that server\'s IP address?

6条回答
  •  耶瑟儿~
    2021-02-08 22:27

    AFAIK you can not 'force' the server to send you his IP address in the response. Why not look it up directly? (Check this question/answers for how to do that from php)

提交回复
热议问题