x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Network: How to catch manual connect to IP failure?

Hi, I have a question about Unreal networking (with Blueprints) For example:

1. Player create online game with "Create Session" node + "Open Level (listen option) node.

2. Another player manually entering IP adress on input field and clicking enter button. After this is used "Execute Console Command" node with command option: "open 127.0.0.1" (the chosen IP address from input field).

3. The second player joined the online game and everything is fine.

4. BUT if server not exist and the player can't connect there, how I can catch this event? I try with GameInstance: Event NetworkError and Event TravelError but they don't fire... also if I using "Create Session" + "Join Session" and server player disconnect, then client player catch GameInstance: Event NetworkError.

I would like players to have "manually connect to IP address" feature with the opportunity to catch connection fails. Is this possible?

Some notes:

  • I try it without "Create Session", just "Open Level (listen option) node and console command "open IP" to wrong address. Again not work, I can't catch connection fail.

  • I try it with standalone packaged project, opens 2 times and again not work. The same like a PlayInEditor (PIE).

  • I am using network NULL subsystem with Unreal 4.18.2

So, Event NetworkError and Event TravelError working only with session nodes? (Create/Find/Join), but what about manual connect with console command "open IP"?

Thanks!

alt text

Product Version: UE 4.18
Tags:
unreal-network.jpg (123.7 kB)
more ▼

asked Mar 02 '18 at 01:58 PM in Blueprint Scripting

avatar image

theone866
13 1 2 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Ok, this event fire: NetworkError (timeout type) but after 60 seconds. How to change this value, check here: https://answers.unrealengine.com/questions/532815/where-to-set-connectiontimeout-value.html

more ▼

answered Mar 16 '18 at 08:56 AM

avatar image

theone866
13 1 2 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question