of     3   
chevron_rightchevron_rightchevron_right

MrLuaBringer
#31929636Wednesday, August 18, 2010 12:07 AM GMT

Is there any way to detect IP addresses in-game? Like a player's IP adress
jordan4762
#31929722Wednesday, August 18, 2010 12:08 AM GMT

Yes.
MrLuaBringer
#31929858Wednesday, August 18, 2010 12:09 AM GMT

How? I'm making this GUI where it shows a player the Server Port and their IP address. I have the Port thign down, I just need to know how I can find the player's IP adress.
MrBlockson
#31930014Wednesday, August 18, 2010 12:11 AM GMT

Don't tell him, Network Client!!
MrLuaBringer
#31930177Wednesday, August 18, 2010 12:12 AM GMT

So, you do it like you would with the Port? Like: game.NetworkServer.IPAddress or something like that?
jordan4762
#31930191Wednesday, August 18, 2010 12:12 AM GMT

fuzzyhed
#31930408Wednesday, August 18, 2010 12:14 AM GMT

I think getting the children of networkServer..
MrLuaBringer
#31930441Wednesday, August 18, 2010 12:15 AM GMT

Yes, but it doesn't say anything on HOW to get the Ip address. Can someone just tell me. Is it something like: game.NetworkServer.IPAddress?
MrLuaBringer
#31930570Wednesday, August 18, 2010 12:16 AM GMT

@fuzzy So you mean like: game.NetworkServer[game.NetworkServer:GetChildren()].IPAddress?
DidYouSeeThatDog
#31930714Wednesday, August 18, 2010 12:18 AM GMT

Each child of Network server is some class, named after an IP address of one of the players, if you can match up the timing of when an IP was added to network server, and when a player was added to players, you can infer which IP belongs to which player. Hope this helps :3
MrLuaBringer
#31930905Wednesday, August 18, 2010 12:20 AM GMT

It kinda helps. But not really.
DidYouSeeThatDog
#31931050Wednesday, August 18, 2010 12:22 AM GMT

Let me see if i can find an old IP ban script of mine, though I never got the player to IP conversion right :P it will work properly when 1 person joins, but I've never tried it with multiple people joining at once :O
MrLuaBringer
#31931190Wednesday, August 18, 2010 12:23 AM GMT

Well. I just need a line of it for my GUI.
DidYouSeeThatDog
#31931299Wednesday, August 18, 2010 12:25 AM GMT

_G.Names = {} _G.IPs = {} function newIP(new) local ip = new.Name ipfix = ip:find(":") ip = ip:sub(1,ipfix-1) local name = "" local nameFired = false function newName(new) if nameFired == false then nameFired = true name = new.Name end end game.Players.ChildAdded:connect(newName) repeat wait(.1) until name ~= nil print(name,ip) Names[name]=ip if IPs[ip] == nil then IPs[ip]={} IPs[ip].Time = 0 end IPs[ip][#IPs[ip]+1] = name end game.NetworkServer.ChildAdded:connect(newIP) (i join game) print(Names["DidYouSeeThatDog"]) >255.255.255.255 Or something like that :3 Maybe this will help :3 ?
MrLuaBringer
#31931925Wednesday, August 18, 2010 12:32 AM GMT

I'm thinking that it may be this: game.NetworkServer[script.Parent.Parent.Parent.Parent.Parent.Name].IP
MrNicNac
#31932287Wednesday, August 18, 2010 12:37 AM GMT

Game.NetworkServer.ChildAdded:connect( function( instanceIP ) Game.Players.PlayerAdded:connect( function( instancePlayer ) print(instancePlayer, " IP : ", instanceIP) end ) end )
DidYouSeeThatDog
#31932435Wednesday, August 18, 2010 12:38 AM GMT

Yeah, that'll work better for OP's needs :p though you might wanna ad this to get rid of the ":53640" on the end fix = instanceIP:find(":") instanceIP = instanceIP:sub(1,fix-1)
MrLuaBringer
#31935218Wednesday, August 18, 2010 1:07 AM GMT

@MrNicNac Thanks. I'll test yours right now.
MrLuaBringer
#31936003Wednesday, August 18, 2010 1:15 AM GMT

Game.NetworkServer.ChildAdded:connect( function( instanceIP ) Game.Players.PlayerAdded:connect( function( instancePlayer ) print(instancePlayer, " IP : ", instanceIP) fix = instanceIP:find(":") instanceIP = instanceIP:sub(1,fix-1) end ) end ) Now, I just need it work for my Gui
MrLuaBringer
#31936300Wednesday, August 18, 2010 1:18 AM GMT

Never mind.
DSepic4ever
#31937668Wednesday, August 18, 2010 1:33 AM GMT

IP Address = Stalkers. I would believe this script could get you in trouble.
DidYouSeeThatDog
#31937915Wednesday, August 18, 2010 1:36 AM GMT

Dsepic, stop over reacting. Your IP address is PLASTERED all over the internet, any time you do anything, your IP is saved. Its not a hidden feature of roblox so its not really a problem (besides disclosing the approx area of where a user lives, if we could look it up in scripts of course). Though ATM, my IP aprears to be from germany, but I'm in america :D tl;dr, read it, then lrn2internet
DSepic4ever
#31938089Wednesday, August 18, 2010 1:37 AM GMT

I still believe IP Address tracking is for companies to know, not teenagers.
DidYouSeeThatDog
#31938505Wednesday, August 18, 2010 1:42 AM GMT

Dude, stop over reacting, its no big deal. If you're afraid of other poeple knowing your IP, you should stick a magnet inside your computer right now.
MrBlockson
#31938858Wednesday, August 18, 2010 1:46 AM GMT

Win ^

    of     3   
chevron_rightchevron_rightchevron_right