13 lines
No EOL
342 B
JavaScript
13 lines
No EOL
342 B
JavaScript
const express = require("express")
|
|
|
|
const PORT = process.env.PORT || 8080
|
|
|
|
var app = express()
|
|
|
|
app.listen(PORT, () => {
|
|
console.log("Shit ass dumb ip grabber is on port " + PORT)
|
|
})
|
|
|
|
app.get("*", (req, res) => {
|
|
console.log("This motherfucker's IP is " + req.headers['x-forwarded-for'] || req.socket.remoteAddress || req.hostname)
|
|
}) |