... from what I set up in CreateNetworkServer() ?
Can somebody answer to this?
WHY is GetClientPort() giving a Port different...
- Didelphodon
- PureBasic Expert

- Posts: 450
- Joined: Sat Dec 18, 2004 11:56 am
- Location: Vienna - Austria
- Contact:
Re: WHY is GetClientPort() giving a Port different...
Because it's the port of the client side which is usually a more or less random one. The port you chose for server creation is your local port where clients can connect to.
Go, tell it on the mountains.
Re: WHY is GetClientPort() giving a Port different...
So there are two ports to a connection, one at the client's side and one at the server's side and PureBasic allows me only to set the one at the server's side, is that right?
Re: WHY is GetClientPort() giving a Port different...
Yes, that's how TCP / UDP work. The client port doesn't mean anything, it's just used
so the server knows what port is expecting the answer.
so the server knows what port is expecting the answer.
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds

