Open rhjdvsgsgks opened 4 months ago
I have it working locally. I'm on 1.19.2 though, so there may be some work to make it work here.
I have it working locally. I'm on 1.19.2 though, so there may be some work to make it work here.
May you provide your source or a build artifact please :) ?
It's actually technically possible already, though you'll need to have a decent understanding of networking to make it work.
There's a hidden block called the VXLAN hub. VXLAN is basically an Ethernet-over-UDP tunnel (i.e. a virtual network cable between two computers), but the neat thing about the block is that it connects to an IRL VXLAN endpoint. You'll need to enable the block in the mod config (vxlan.enable=true), and set vxlan.remoteHost to the IP of a device with a VXLAN interface. /setblock oc2r:vxlan_hub will be needed to place it as its corresponding item is commented out in the mod code.
If you have a Linux computer or VM, it supports VXLAN out of the box. # ip link add vxlan0 type vxlan id 1000 dstport 4789 remote <IP of computer running MC>
should make the VXLAN you'd need, and from there you can either use it as-is to access OC2R from that computer, or set up a bridge interface to have OC2R connect to your home network. Not sure about windows or mac.
I did it myself using the Mikrotik managed switch I use for my home network, though I doubt that'd be an option for most, I've basically got an enterprise-level network at home.
We also got this kind of networking, im an IT Admin, this sounds absolutely sick thank you for the info xD
I have it working locally. I'm on 1.19.2 though, so there may be some work to make it work here.
May you provide your source or a build artifact please :) ?
@LKD-PIX https://github.com/perkinslr/oc2r/tree/1.19.2 Can't be 100% certain the current state of it, but I'm pretty sure that's the state of it I've actually been running. I can probably get you the script that configures the network on the VM side in a bit.
Is your feature request related to a problem? Please describe. i want to access in game computer on my host machine
Describe the solution you'd like something like https://ocdoc.cil.li/item:internet_card , but able to bridge to a host veth
Describe alternatives you've considered nat, but also able to listen on some port on host
Additional context https://github.com/fnuecke/oc2/pull/63