- Home /
do i need to pay and rent server for hosting and joining in remote internet???
i made a network game. everything works fine except joining the room. i have no idea why this happened
this is my code and setting
public class LobbyManager : NetworkLobbyManager {
...
public void OnClickStartHost()
{
StartHost();
}
public void OnClickJoin()
{
networkAddress = ipInput.text; // this is IP
StartClient();
}
i tried 127.0.0.1 / ipv4 address / default gateway. none of them worked. i guess that probably i need a server from another company, which means i have to pay for that. if that is true, could you recommand some good company with good price? any help is appreciated.
Answer by Zetya96 · Mar 21, 2018 at 02:30 PM
You dont need a server for peer-to-peer connection..
Localhost should work, if you run 2 instance.
For outside of your network connection, you need to port forward on the server side, or use NAT punchthrough..
this is my lobby$$anonymous$$anager setting. what does it mean to port forward on the server side? and NAT punchthrough? thankyou
Answer by mynameisjun · Mar 22, 2018 at 09:37 AM
i just change my network port to something different, and it worked!! that answer didn't really help, but thanks for reminding me that problem is in port anyway.