m26frogy
|
  |
| Joined: 13 Oct 2008 |
| Total Posts: 88 |
|
|
| 13 Apr 2013 08:17 PM |
I have noticed that whenever I run Start Server (very useful) it seems to set up a network game. Yet I can't seem to find out how to access another game on the network from another computer. Is there any way or does ROBLOX just like freeing up ports?
Curiosity. |
|
|
| Report Abuse |
|
|
booing
|
  |
| Joined: 04 May 2009 |
| Total Posts: 6594 |
|
|
| 13 Apr 2013 08:18 PM |
| game:service("NetworkClient"):Connect is what you're looking for. |
|
|
| Report Abuse |
|
|
dekkonot
|
  |
| Joined: 22 Dec 2010 |
| Total Posts: 6685 |
|
|
| 13 Apr 2013 08:23 PM |
Like this, I'm guessing:
game:GetService("NetworkClient"):PlayerConnect(playerId, "localhost", 53640) |
|
|
| Report Abuse |
|
|
m26frogy
|
  |
| Joined: 13 Oct 2008 |
| Total Posts: 88 |
|
|
| 15 Apr 2013 07:47 AM |
| So, just for clarification, would the second argument be replaced by the IP of the computer you want to access? |
|
|
| Report Abuse |
|
|
|
| 15 Apr 2013 08:19 AM |
@M2,
No.
Localhost is a computer term used for representing the host of the server. It is not to be replaced by anything.
Arg1 is your playerID, mine would be 22640087.
Arg2 is "localhost".
Arg3 is place ID.
_________________________________________________________________________ I possess 7 ROBUX and 37 tickets. |
|
|
| Report Abuse |
|
|
m26frogy
|
  |
| Joined: 13 Oct 2008 |
| Total Posts: 88 |
|
|
| 15 Apr 2013 09:02 AM |
| Argument 3, according to the documentation, is not the placeid. It's the port of the server. Also, if ConnectPlayer only works on joining a server on your computer, it's useless to me. I'm interested in joining another computer's server, not my own. |
|
|
| Report Abuse |
|
|
|
| 15 Apr 2013 11:46 AM |
@M2,
Yeah, I noticed that I was at fault shortly after my post.
It is the Port of the server.
_________________________________________________________________________ I possess 7 ROBUX and 37 tickets. |
|
|
| Report Abuse |
|
|
m26frogy
|
  |
| Joined: 13 Oct 2008 |
| Total Posts: 88 |
|
|
| 15 Apr 2013 05:42 PM |
| I guess ROBLOX just likes to use my network. Thanks for everyone's help! |
|
|
| Report Abuse |
|
|
dekkonot
|
  |
| Joined: 22 Dec 2010 |
| Total Posts: 6685 |
|
|
| 15 Apr 2013 05:46 PM |
No problem. =D
~ Dekkonot ~ |
|
|
| Report Abuse |
|
|