SyntaxFix
Write A Post
Hire A Developer
Questions
Like this for the server ip:
$_SERVER['SERVER_ADDR'];
and this for the port
$_SERVER['SERVER_PORT'];