Jump to content

Trying to get multiplayer working...


wildfighter
 Share

Recommended Posts

People can't connect to the games I create on the lobby, I have set up port forwarding for UDP port 20595, but what IP address do I forward it to?


Also is it possible for 2 people on the same network (IP address) to connect and play with each other?



Thanks in advance,
Andrew

Link to comment
Share on other sites

You should forward it to your internal IP (commonly something like 192.168.0.X or 192.168.1.Y). You can obtain that by entering ipconfig in cmd.exe (if you are on Linux or OS X ifconfig in a shell).

On the same local network you can use the 'Host Game' and 'Join Game' buttons on the main menu. The IP you should enter is the local (internal) IP of the host.

Link to comment
Share on other sites

Each computer has a local address inside your network (usually something like 192.168.1.x).

When you use one router for internet access with these two computers, both use the router's external IP-address for communicating with servers in the internet or with other players in the internet.

So when someone tries to connect to your IP address from the internet, that's the router's external address.

Because there are multiple computers on your LAN, the router doesn't know to which one it should forward the packet and the connection will fail. Port-forwarding specifies that.

... but what IP address do I forward it to?

You need to forward it to the local IP address of the computer that should host the game.

On Windows you can open a command prompt (cmd.exe) and type "ipconfig". This should print your local IP-Address and some other information. On Linux or Mac the command is "ifconfig".

Also is it possible for 2 people on the same network (IP address) to connect and play with each other?

If only these two people should play together (without other players from the internet), you should open a game using the "Host Game" button directly from the main menu. The other player should then use the "Join Game" button from the main menu and enter your local IP address (the one you got with the ipconfig command).

I'm not sure if it works from the lobby and if it works together with other players from the internet.

Link to comment
Share on other sites

Thanks to Both Triplicarius and Centurio ! :yes3: Both Extremely helpful! Even though I don't know much about networking, at all, i still managed to get it set up better than i planned, it seems when using internal/local IP the game goes into like a LAN mode, not introducing outside lag and using bandwidth!





You should forward it to your internal IP (commonly something like 192.168.0.X or 192.168.1.Y). You can obtain that by entering ipconfig in cmd.exe (if you are on Linux or OS X ifconfig in a shell).

On the same local network you can use the 'Host Game' and 'Join Game' buttons on the main menu. The IP you should enter is the local (internal) IP of the host.

Each computer has a local address inside your network (usually something like 192.168.1.x).

When you use one router for internet access with these two computers, both use the router's external IP-address for communicating with servers in the internet or with other players in the internet.

So when someone tries to connect to your IP address from the internet, that's the router's external address.

Because there are multiple computers on your LAN, the router doesn't know to which one it should forward the packet and the connection will fail. Port-forwarding specifies that.

You need to forward it to the local IP address of the computer that should host the game.

On Windows you can open a command prompt (cmd.exe) and type "ipconfig". This should print your local IP-Address and some other information. On Linux or Mac the command is "ifconfig".

If only these two people should play together (without other players from the internet), you should open a game using the "Host Game" button directly from the main menu. The other player should then use the "Join Game" button from the main menu and enter your local IP address (the one you got with the ipconfig command).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...