Created
December 25, 2016 20:04
-
-
Save yakutozcan/5b7a0ecad4619c12069393aefaa88ed2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'), | |
express = require('express'), | |
app = express(); | |
app.get('/', function(req, res) { | |
//nginx den gelen ip bilgisi | |
var ip = req.headers['x-real-ip'] || req.connection.remoteAddress; | |
console.log(ip); | |
res.send("Naber abi:"+ip); | |
}); | |
app.listen(1907, function() { | |
console.log('Start:::1907!') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment