Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

161
Views
Reverse Proxy - Get User IP - PHP,APACHE

JAVASCRIPT

websocket = new WebSocket("wss://site.com/game_play/");.....

PHP

$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
....
$size=socket_recvfrom($socket_new,$input,65535,0,$ipaddress,$port);
echo "Received [$input] ($size bytes) from IP $ipaddress Port $port\n";

APACHE

ProxyPass /game_play/ ws://site.com:8090/server.php
ProxyPassReverse /game_play/ ws://site.com:8090/server.php

START SERVER - SSH: php server.php

Error: User ip address should be returned; server ip address is returning.

Note: Returns X-FORWARDED-FOR in the header. However, this is not safe.

THANKS.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!