Send a message to Server without connecting to it?

As the subject line says, is it possible to send a message to a Server without connecting to it? if so, how?

Set up a custom network socket.

After your response I searched online and found a tutorial.
But the tutorial author mentions needing to setup a “WebSocket Server” and that they pre-setup a server written in something called “Node JS”. Is there not a way to do this with just UE4?

Look into Online Beacons: Using Online Beacons in Unreal Engine | Unreal Engine 5.3 Documentation

2 Likes

OnlineBeacons defenitly sounds like what I need. Ive read over that documentation, and I now understand how it’s meant to work. But it does not say much on how to actually implement the code. Do I spawn an [AOnlineBeaconHost] in my code, or a [AOnlineBeaconHostObject] ? Once spawned will InitHost() automatically be called, similar to an Actor’s BeginPlay()? What do I actualy need to do to get it to work?

I did a search for tutorials regarding OnlineBeacons but couldn’t find much that wasn’t 6+ years old, or for a specific type of beacon (Steam Beacons).

Do you, or anyone else, know of a tutorial for how exactly to implement and use these OnlineBeacons?

Purpose matters here.

If your intent is to work with RPC’s, the beacons will work. If it’s RCON (Administration), then sockets.

1 Like

If you plan to use beacons in the GOG platform, you will be dissapointed. Don’t ask how I know :smiley:

Beacons are light weight way of connecting to the server. I use them to get FPS, and host computer performance (FPS).

You can watch this tutorial for online beacons: https://www.youtube.com/watch?v=d7m5s8xR-jg

I used it to create beacons for my game.

1 Like

Thanks to everyone who helped. I have successfully sent a message to the Server without connecting to it.

I still have more work to do, but I now know enough to be able to actually get it done.

1 Like

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