Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Networked vs Local  (Read 2006 times)

0 Members and 1 Guest are viewing this topic.

Strikerklm96

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • Email
Networked vs Local
« on: January 28, 2015, 03:12:24 am »
I am testing a game locally on my computer, by running two-three instances at once and telling them to connect to 127.0.0.1 with the appropriate port, and the game works perfectly. But if I connect over a network, in several instances I have gotten strange behavior, mainly having to do with receiving a packet with random garbage in it (or at least it is not in the format it should be, and gives values that should never have been sent through a packet, such as negative numbers when they are always supposed to be positive, or just too big). This usually results in the client program crashing, but in at least one instance it just received a tiny bit of garbage and carried on. Other than latency, what are the differences between locally connecting vs two computers over a VPN or LAN? Any hints as to what the source of the problem could be?
« Last Edit: January 28, 2015, 03:15:49 am by Strikerklm96 »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11016
    • View Profile
    • development blog
    • Email
AW: Networked vs Local
« Reply #1 on: January 28, 2015, 06:43:42 am »
We're no fortuneteller. Run wireshark on the server and client PC and see what gets actually sent around.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything