|
| 28 Sep 2013 08:20 PM |
Hello. I need to figure out how to get an IP of a ROBLOX GAME server, not roblox.COM, but a ROBLOX game server. Is there a program I can use to obtain the IP? I need the IP to use in the join.ashx script, but I have no idea of the IP of the gameserver I need to join. I need an expert. Thanks for reading. |
|
|
| Report Abuse |
|
|
janthran
|
  |
| Joined: 15 May 2009 |
| Total Posts: 17429 |
|
|
| 28 Sep 2013 08:21 PM |
| I'm pretty sure that's not something you should be doing |
|
|
| Report Abuse |
|
|
| |
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 28 Sep 2013 08:31 PM |
| Game:GetService("NetworkClient"):GetChildren()[1].MachineAddress |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 28 Sep 2013 08:32 PM |
Get gameserver.ashx from PlaceLauncher.ashx Get server IP and port from gameserver.ashx |
|
|
| Report Abuse |
|
|
| |
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 28 Sep 2013 08:34 PM |
Here's my old and rusty code
function getTicket(str) return str:match("client%.Ticket%s*=%s*\"(.-)\""); end --print(getTicket(game:HttpGet("http://www.roblox.com/game/")))
local baseUrl = "http://www.roblox.com/" local plUrl = "%sgame/placelauncher.ashx" local requestUrls={followUser="%s?request=RequestFollowUser&userId=%d", joinGame="%s?request=RequestGame&placeId=%d"} function parseJSON(str) str = str:sub(2, -2) str = str .. "," local tab={}; for k, v in str:gmatch('(.-)%s*:%s*(.-),') do tab[tonumber(k) or k:sub(2, -2)]=tonumber(v) or v:sub(2, -2); end return tab; end
function joinGame(rqTyp, ...) local json = game:HttpGet((requestUrls[rqTyp]):format((plUrl):format(baseUrl), ...), true); local json_t=parseJSON(json); if json_t.joinScriptUrl == "null" then json = game:HttpGet((requestUrls[rqTyp]):format((plUrl):format(baseUrl), ...)); json_t=parseJSON(json); end if json_t.status == 2 then -- success src=json_t.joinScriptUrl:gsub("\\", ""); src=game:HttpGet(src, true); local eHash = src:find("%%", 2); -- remove that nasty hash src = src:sub(eHash+1) getTicket(src); --game:GetService("RunService"):Run() --repeat wait() until game.Players.LocalPlayer; elseif json_t.status == 4 then print("The game you are trying to join is not playable.") elseif json_t.status == 5 then print("The player you are trying to follow is not in the game.") elseif json_t.status == 6 then print("The server you are trying to join is full right now.") elseif json_t.status == 0 then print("The JSON is empty.") else print("JSON Status: " .. json_t.status) end end |
|
|
| Report Abuse |
|
|
ZachBloxx
|
  |
| Joined: 26 Jun 2013 |
| Total Posts: 2833 |
|
| |
|
| |
|
|
| 28 Sep 2013 08:38 PM |
| Also, how do you use a JoinScript (as command line arg) on RobloxPlayerBeta.exe? I mean how do you use the -j argument? |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 28 Sep 2013 08:39 PM |
lol i just realized this code doesn't do anything, try this
function getTicket(str) return str:match("client%.Ticket%s*=%s*\"(.-)\""); end function getUserId(str) return str:match("client:PlayerConnect%((%d-),"); end function getIP(str) return str:match([[client:PlayerConnect%(%d-, "(.-)"]]); end function getPort(str) return str:match([[client:PlayerConnect%(%d-, ".-", (%d-),]]); end --print(getTicket(game:HttpGet("http://www.roblox.com/game/")))
local baseUrl = "http://www.roblox.com/" local plUrl = "%sgame/placelauncher.ashx" local requestUrls={followUser="%s?request=RequestFollowUser&userId=%d", joinGame="%s?request=RequestGame&placeId=%d"} function parseJSON(str) str = str:sub(2, -2) str = str .. "," local tab={}; for k, v in str:gmatch('(.-)%s*:%s*(.-),') do tab[tonumber(k) or k:sub(2, -2)]=tonumber(v) or v:sub(2, -2); end return tab; end
function joinGame(rqTyp, ...) local json = game:HttpGet((requestUrls[rqTyp]):format((plUrl):format(baseUrl), ...), true); local json_t=parseJSON(json); if json_t.joinScriptUrl == "null" then json = game:HttpGet((requestUrls[rqTyp]):format((plUrl):format(baseUrl), ...)); json_t=parseJSON(json); end if json_t.status == 2 then -- success src=json_t.joinScriptUrl:gsub("\\", ""); src=game:HttpGet(src, true); local eHash = src:find("%%", 2); -- remove that nasty hash src = src:sub(eHash+1) print(getTicket(src), tonumber(getUserId(src)), tostring(getIP(src)), tonumber(getPort(src))); pcall(workspace.ClearAllChildren, workspace); local NetworkClient = game:GetService("NetworkClient"); NetworkClient.Ticket = getTicket(src); NetworkClient:PlayerConnect(tonumber(getUserId(src)), tostring(getIP(src)), tonumber(getPort(src))); --game:GetService("RunService"):Run() --repeat wait() until game.Players.LocalPlayer; elseif json_t.status == 4 then print("The game you are trying to join is not playable.") elseif json_t.status == 5 then print("The player you are trying to follow is not in the game.") elseif json_t.status == 6 then print("The server you are trying to join is full right now.") elseif json_t.status == 0 then print("The JSON is empty.") else print("JSON Status: " .. json_t.status) end end
|
|
|
| Report Abuse |
|
|
|
| 28 Sep 2013 08:41 PM |
| lol exactly I was just thinking - the function joinGame isn't called.. |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 28 Sep 2013 08:41 PM |
| you have to call it my young padawan |
|
|
| Report Abuse |
|
|
|
| 28 Sep 2013 08:43 PM |
| joinGame([WHATPARAM], [WHATPARAM]) |
|
|
| Report Abuse |
|
|
|
| 28 Sep 2013 08:45 PM |
| btw sorry for my lack of knowledge. |
|
|
| Report Abuse |
|
|
| |
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 28 Sep 2013 09:08 PM |
| joinGame("joinGame", 1818) |
|
|
| Report Abuse |
|
|
|
| 28 Sep 2013 09:38 PM |
An error occurred 10:37:28.982 - Script 'function getTicket(str) return str:match("client%.T', Line 30 - global joinGame 10:37:28.983 - Script 'joinGame("joinGame", 1818)', Line 1 10:37:28.983 - stack end |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 28 Sep 2013 09:47 PM |
| @ROBLOXER2810: thats because ur code aint as insecure as mine |
|
|
| Report Abuse |
|
|
| |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 30 Sep 2013 09:35 AM |
netstat -n
Find the port Roblox is using (usually like 50k something)
Maybe? |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2013 12:02 PM |
| I thought they locked that down? Or did they lock down getting Players' IPs? |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
| |
|