W
Woochi
Guest
For a LAN game im working on, i have the following network setup:
- client & host in 1
- both client and host have:
Host AND client need to send udp, receive udp, send broadcast, receive broadcast. This lead me to the following common configuration:
The reason im asking, is because something seems to be off, and i want to be sure im understanding the networking (LAN) logic, and applying it correctly. And if not, i want to fix this before continuing the search for the culprit. For instance, is it correct to assume that the purpose of a UDP server is to *listen* to *broadcasts* only?
EDIT 1:
To elaborate in the issue i mentioned: (UDP) communication does not seem to work, with another computer in the same network. Both IP addresses are within the same range (double checked this with ipconfig , as well as ingame (broadcast & receiving own IP)). Yet it still does not work, even with firewalls completely turned off and no antivirus installed (neither targeted / hardcoded IP UDP nor broadcast). Im at a loss of what to do, having struggled with this issue for about a week now. Any help is appreciated a lot.
- client & host in 1
- both client and host have:
- UDP server, at port X
- UDP socket, at port Y
Host AND client need to send udp, receive udp, send broadcast, receive broadcast. This lead me to the following common configuration:
- send: through UDP socket, to port Y
- receive: from port Y (UDP socket)
- broadcast: through UDP socket, to port X
- receive broadcast: from UDP server (port X)
The reason im asking, is because something seems to be off, and i want to be sure im understanding the networking (LAN) logic, and applying it correctly. And if not, i want to fix this before continuing the search for the culprit. For instance, is it correct to assume that the purpose of a UDP server is to *listen* to *broadcasts* only?
EDIT 1:
To elaborate in the issue i mentioned: (UDP) communication does not seem to work, with another computer in the same network. Both IP addresses are within the same range (double checked this with ipconfig , as well as ingame (broadcast & receiving own IP)). Yet it still does not work, even with firewalls completely turned off and no antivirus installed (neither targeted / hardcoded IP UDP nor broadcast). Im at a loss of what to do, having struggled with this issue for about a week now. Any help is appreciated a lot.
Last edited by a moderator: