generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: ROBLOX Game Server IP

Previous Thread :: Next Thread 
Robloxer2810 is not online. Robloxer2810
Joined: 01 Nov 2012
Total Posts: 144
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 is not online. 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
Robloxer2810 is not online. Robloxer2810
Joined: 01 Nov 2012
Total Posts: 144
28 Sep 2013 08:24 PM
Why
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
28 Sep 2013 08:31 PM
Game:GetService("NetworkClient"):GetChildren()[1].MachineAddress
Report Abuse
blocco is not online. 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
Robloxer2810 is not online. Robloxer2810
Joined: 01 Nov 2012
Total Posts: 144
28 Sep 2013 08:33 PM
Gee, thanks.
Report Abuse
blocco is not online. 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 is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
28 Sep 2013 08:35 PM
ur so cool blocco
Report Abuse
Robloxer2810 is not online. Robloxer2810
Joined: 01 Nov 2012
Total Posts: 144
28 Sep 2013 08:37 PM
ikr
Report Abuse
Robloxer2810 is not online. Robloxer2810
Joined: 01 Nov 2012
Total Posts: 144
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 is not online. 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
Robloxer2810 is not online. Robloxer2810
Joined: 01 Nov 2012
Total Posts: 144
28 Sep 2013 08:41 PM
lol exactly I was just thinking - the function joinGame isn't called..
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
28 Sep 2013 08:41 PM
you have to call it my young padawan
Report Abuse
Robloxer2810 is not online. Robloxer2810
Joined: 01 Nov 2012
Total Posts: 144
28 Sep 2013 08:43 PM
joinGame([WHATPARAM], [WHATPARAM])
Report Abuse
Robloxer2810 is not online. Robloxer2810
Joined: 01 Nov 2012
Total Posts: 144
28 Sep 2013 08:45 PM
btw sorry for my lack of knowledge.
Report Abuse
Robloxer2810 is not online. Robloxer2810
Joined: 01 Nov 2012
Total Posts: 144
28 Sep 2013 08:55 PM
bump
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
28 Sep 2013 09:08 PM
joinGame("joinGame", 1818)
Report Abuse
Robloxer2810 is not online. Robloxer2810
Joined: 01 Nov 2012
Total Posts: 144
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 is not online. 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
Robloxer2810 is not online. Robloxer2810
Joined: 01 Nov 2012
Total Posts: 144
28 Sep 2013 10:00 PM
???
Report Abuse
Robloxer2810 is not online. Robloxer2810
Joined: 01 Nov 2012
Total Posts: 144
30 Sep 2013 03:49 AM
bump
Report Abuse
cntkillme is not online. 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
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
30 Sep 2013 12:02 PM
I thought they locked that down? Or did they lock down getting Players' IPs?
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
30 Sep 2013 01:55 PM
Player ones.
Report Abuse
Robloxer2810 is not online. Robloxer2810
Joined: 01 Nov 2012
Total Posts: 144
26 Oct 2013 01:12 AM
bmp
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image