Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Computer's IP address

FatalsniperFatalsniper Member Posts: 55
Hi there,

How do you get the IP address of the computer running the code?

Thank you...


  • SouldrinkerSouldrinker Member Posts: 143
    The code is running on the server... but the remote IP is saved in the enviroment variables...

    you can get it this way:

    $ip = getenv("REMOTE_ADDR");

    hope this is what you've meant
    best regards,

    sebastian mohrenstecher
    executive secretary
    [email protected]

  • FatalsniperFatalsniper Member Posts: 55
    Thank you, that's what I meant
  • Andre YoungAndre Young USAMember Posts: 0

    ___ [ ] free video tutorials and ebooks about < Objective-C, Visual Basic, PHP, Java, Visual Basic .NET, MATLAB, C#, PL/SQL, Python, R, Perl, Delphi, Go, Swift, Assembly, Ruby, JavaScript, Scratch, C++, C Julia, Ada, Awk, COBOL, Scala, Fortran, F#, Lisp, Dart, LabVIEW, Prolog, Rust, Clojure, Lua, Crystal, Bash, Apex, Erlang, Logo, Kotlin, SAS, VBScript, ABAP, FoxPro, Alice, ML, Scheme, Hack, Transact-SQL, D /> _______

Sign In or Register to comment.