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"

OnlineSubsystemNull sessions don't work on server with multiple network interfaces

I am using the null online subsystem to set up LAN multiplayer sessions in my game. It works as long as I only have the "Ethernet adapter Ethernet" network interface on my (Windows 10) computer. As soon as I add another network interface, such as when installing VirtualBox, the multiplayer sessions stop working.

Should I tell the session system to use a specific network interface somehow? How do I do that?

Product Version: UE 4.16
Tags:
more ▼

asked Sep 05 '17 at 02:45 PM in C++ Programming

avatar image

joel_enterspace
6 2 4

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

1 answer: sort voted first

In case someone has the same problem in the future.

The issue seems to be that the LAN session code is using the first interface it finds. So if there are multiple, chances are it will pick the wrong one.

Starting the game with the commandline argument "-MULTIHOME={the ip address of the interface you want to use}" will make it work.

more ▼

answered Sep 20 '17 at 10:06 AM

avatar image

joel_enterspace
6 2 4

avatar image moussamo Aug 20 '18 at 03:28 PM

Is there anyway to do it in editor without the commandline argument?

avatar image joel_enterspace Aug 22 '18 at 06:59 AM

It seems like you can add commandline parameters in editor preferences under play -> play in standalone game -> additional launch parameters.

I haven't tested that though.

(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