Does anyone have an idea of how I can test my game with other people on different networks and computers using my IP as the server?

How can I use the console execution command to start a match in my multiplayer project? I used the console execution command with the following example: ‘open 192.145.2.3’. This is an example IP. However, when I input these parameters into the console and package my project, I can create a session and enter the game map. However, shortly after, I am kicked out of the match, returning to the lobby. This issue is only resolved if I remove the console execution command from the Blueprint of the map menu. Does anyone have an idea of how I can test my game with other people on different networks and computers using my IP as the server?

If you package with Development instead of Shipping, you can grab the logs, might give you a hit of what’s happening.

My guesses:

  • the hosting client calls “open ip” too, so it tries to connect to itself → failure → return to menu
  • if that IP is external, you need to open the 7777 port on your router, and forward it to your PC

Also don’t forget, for the hosting client, it’s important to open the level with the “?listen” in the URL.

Of course, this is all assuming one of the client is the hosting machine, and we are not talking about dedicated server

1 Like

A port 7777 just after the IP? example: open 192.145.2.3:7777

If so, I’ve already tested it that way.

In this case, I did it in two ways, one without port 7777 and the other just open plus the IP.

I meant you need to portforward the 7777 port on your router.

1 Like

I don’t know how to do this, I’m new to network matters.

Hey @Xrrayper-Corp

what @honya15 means:

In your router settings you have to forward port 7777. It will route incoming traffic on this port to your local ip of your pc. Everyone outside your local network will connect to your external ip, this will be like knocking on your door. Then the router will tell them “First door on the left, good luck”.

2 Likes

Hey @Xrrayper-Corp

you could also test Hamachi or ZeroTier when playig with friends. This way your would be on a VPN which would be easier.

I tested hamachi and it worked, the problem is that because it is a VPN, there was a little delay compared to me looking at the other player, kind of like he was in slow motion but not so slow and a bit shaky.

Hey @Xrrayper-Corp

where you able to identify that this was caused by the VPN connection? You could test a “ping 192.168.100.2” (you will have to change the ip to the ip of your friend in hamachi). This shaky behaviour could aso be caused by wrong settings for the client movement.

I’m using the FPS Multiplayer template project to make this connection and it has ping marking.

but I may have to change the custom event from SVR/MC to Client/SVR, when reloading the player, this is more noticeable when reloading the weapon.

Hey @Xrrayper-Corp

did you test the FPS template before editing? Just to check that it works as intended out of the box?

No, but I didn’t change any connection system, I just changed animations and meshes.

I’m even going to do a test on the FPS base project, I already had that in mind.

1 Like

Well, I’ve made a whole session system that works perfectly with Steam, I’m going to try to open port 7777, if I can’t access my router’s settings, I’ll use Hamachi again or something better just to test multiplayer. There is a problem and I fix it with a replication.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.