udp

  1. BlockCabin

    SOLVED UDP Hole Punching Help

    I want to create a peer to peer game like risk of rain. I'm pretty new to networking, but I really wanna learn how to do this. I don't know how to hole punch, it's that simple. I just do not. I think I get the general gist, but I have absolutely no idea how I would actually pull it off. From...
  2. JesterOC

    SOLVED [SOLVED] UDP Networking... Stack Overflow when sending player positions. Please Help!

    I've been stuck the past couple days on a UDP GM server problem.... So with TCP you have a socketlist, which you can get from the network connect async event... ...in UDP it is connectionless, just messages... so we use async_load and get IP and PORT... This appears to have no problems on the...
  3. OneIsNeverLate

    GMS 2 Network port forwarding

    Hello! I've been working on a project for two months now, and keep hitting a roadblock when testing with friends. My game uses a tcp connection server with peer-to-peer host and clients. Essentially, I can host on my pc and clients can join my lobby (being that I allowed a forwarded port on my...
  4. FoufaDjo

    need help udp server

    my server send data only to my last active client and idk why here is my code: server creat event: var type = network_socket_udp; var port = 8000; socket = network_create_socket_ext(type,port); remote_port = 0; remote_ip = "0.0.0.0"; var type = buffer_grow; var alignment = 1; send_buffer =...
  5. Pelican Police

    Multiplayer with no portforwarding or server. Only two or more clients directly connecting to each other

    So after seeing that other topic, I decided to test UDPHP. TL;DR, you can circumvent the need for a server if you just connect two sockets together. And holy crap, it works... 99% of the time... But what I'd love help with, is checking how often this works in the real world. Because there's no...
  6. E

    GML UDP Hole punching

    Hello, i'm trying to make a udp hole punching connection, but i can't get the players to receive messages without opening ports. Here's my code: CREATE EVENT txt = "None"; connected = false; socket = network_create_socket_ext(network_socket_udp,global.myport); if(socket >= 0){ txt = "Waiting"...
  7. DonMaklesso

    Changing from TCP to UDP

    So basically I have a basic multiplayer (server - client) in my game running on TCP protocol, but I wanted to see how it works on UDP. But when I do this (change from tcp to udp) client can't connect to the server, like it entered wrong IP (same result). Could you please tell me if I should...
  8. Shadowblitz16

    GMS 2 is there a way to send instance id's over network?

    hello I am getting into udp networking in gamemaker and I was wondering how to sync a object by a instance id? I keep getting back different ids then what is on the other end. I would think instance id's start from some base number and amount sequentially during the programs life but it seem...
  9. E

    Android Alternative to Real Time Multiplayer

    Hello, Google Play Services Real Time multiplayer is going away on march 31, 2020. I'm looking for extensions that works with UDP and allows Peer to Peer. Firebase Realtime Database is not an option because it's not as fast since it uses Websocket. Google Cloud Openmatch is another option, but...
  10. Pichu114

    Question - Code [SOLVED] Reliable UDP

    When reading the documentation on network_set_config, we came across the "reliable UDP protocol" that GameMaker apparently supports. This protocol claims to guarantee that packets find their destination, without extra code on your end. For complicated reasons, our project cannot use TCP, so this...
  11. Drepple

    networking UDP not sending (solved)

    Hi there, I've been working on a game that uses UDP to broadcast data for lobbies and then connects to the server with the lowest ping using TCP. The packets that are being broadcasted only contain a certain time. When another person receives the packet it will send back the time and the person...
  12. Shadowblitz16

    GMS 2 test for connection and disconnection in udp

    can someone give me an example of how to test for a connection and disconnection in udp? I wanted to bypass the server object directly and just have everything in the client object and have it auto detect which is the server, however since its a connectionless protocol I'm not sure how to test...
  13. BMatjasic

    Asset - Project UDP Game Networking Engine (GMS 2 and 1.4 Compatible) 6.99$ Release discount!

    Complete UDP Networking engine, that is very simple to use and very optimized! it also includes HTTP Login and register system. Every single line of code is commented! Marketplace URL: Link Download demo: Link Video of demonstration: It includes: Very easy to use Simple coding A server...
  14. W

    UDP socket-port binding & broadcasting

    For a LAN game im working on, i have the following network setup: - client & host in 1 - both client and host have: UDP server, at port X UDP socket, at port Y so, X and Y are the same for everyone. Both parties are intended to be able to broadcast & listen to broadcasts, therefore a UDP...
  15. BMatjasic

    GMS 2 Having problems with gameserver sending udp packets to clients

    Hello dear GMC Community, I'm having few issues last days while working on the Gameserver, which I've made working with TCP, but since TCP is not reliable for game servers, I've attempted to rewrite the server to support UDP. So what's the case? I've successfully managed to send the packets to...
  16. U

    What's the most clever way to do it?

    Hello everyone. I have multiple machines broadcasting packets through UDP to each other on my LAN. I want each machine to be able to read the packets the other clients send, but ignore the ones sent by itself. What's the most clever way to do this? The only way that comes to my mind is check...
  17. U

    Legacy GM Multiplayer LAN lobby?

    Hello everyone. I'm trying to build a multiplayer LAN lobby engine, that works as so: the server (host) broadcasts its IP to everyone in the LAN (presumably through UDP); the clients that want to join a session receive the server's IP; the clients connect to that IP now through TCP. The...
  18. K

    Windows Problem with sending UDP

    Hello, firstly sorry for my english. I am creating app which will send udp message to my microcontrolers, i get this code. socket = network_create_socket(network_socket_udp); remote_ip = "10.10.1.55"; remote_port = 55838; var wiadomosc = "tak"; send_buffer = buffer_create(15,buffer_fixed,6)...
  19. Freddy Jones

    UDP "Essentials" Extension Proposal

    "Twitch Based Multiplayer Game" - Street fighter IV Have you ever dabbled with Game Maker's UDP API, or UDP at all? If your experience was like mine, you were probably daunted by all the things that weren't included. Things were simply missing from the experience. Sure, I was able to eventually...
  20. Anixias

    Legacy GM Using TCP and UDP at the same time

    Now, I'm already aware of what I should probably do. Have a TCP socket that the clients use to connect to the server and send information that needs to be reliably sent, and also have a UDP socket that they send pretty much everything else through. Well, my game is 100% UDP at the moment, and I...
Top