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

Author Topic: Simple UDP connection that transfers message using packets  (Read 2699 times)

0 Members and 1 Guest are viewing this topic.

paupav

  • Full Member
  • ***
  • Posts: 155
    • View Profile
    • Email
Simple UDP connection that transfers message using packets
« on: January 02, 2016, 11:36:43 pm »
So, I don't know why this isn't working. I've read some documentation and I've made this code. Both server and client are ran on the same machine.
SERVER
(click to show/hide)

CLIENT:
(click to show/hide)
« Last Edit: January 02, 2016, 11:48:03 pm by paupav »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Simple UDP connection that transfers message using packets
« Reply #1 on: January 03, 2016, 09:56:38 am »
Using your public IP, the packet will go through your router, the public internet and then back to your router and finally to your PC. So it will most likely be blocked.

If you run it locally, either use your private address or localhost.
Laurent Gomila - SFML developer

paupav

  • Full Member
  • ***
  • Posts: 155
    • View Profile
    • Email
Re: Simple UDP connection that transfers message using packets
« Reply #2 on: January 03, 2016, 04:04:22 pm »
Thanks

 

anything