Howdy, Stranger!

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

Categories

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...

Comments

  • 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:

    [code]
    $ip = getenv("REMOTE_ADDR");
    [/code]

    hope this is what you've meant
    best regards,

    sebastian mohrenstecher
    executive secretary
    net::allies

    www.net-allies.de
    info@net-allies.de

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

    ___ [ http://forcoder.org ] 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.