Skip to content

Commit

Permalink
Properly use localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
VirxEC committed May 20, 2024
1 parent 468c570 commit 4206ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub enum SendableUdp {
}

fn establish_connection(port: Res<ServerPort>, mut commands: Commands, mut state: ResMut<NextState<GameLoadState>>) {
let out_addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 0)), port.primary_port);
let out_addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), port.primary_port);
let recv_addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), port.secondary_port);
let socket = UdpSocket::bind(recv_addr).unwrap();

Expand Down

0 comments on commit 4206ebb

Please sign in to comment.