![Quote](https://cboard.cprogramming.com/images/misc/quote_icon.png)
Originally Posted by
Da-Nuka
So...Getting things like portforwarding, router config and firewall config isnt the programmers job?
![Confused](https://cboard.cprogramming.com/images/smilies/confused.png)
No it is up to the user to decide what he wants to allow past his firewall but if you want your program to configure a firewall/router you could use Microsoft UPnP if the remote firewall/router suports it.
![Quote](https://cboard.cprogramming.com/images/misc/quote_icon.png)
Originally Posted by
DA-Nuka
So if it works fine on LAN/Network, the job is finished, even for internet?
![Smile](https://cboard.cprogramming.com/images/smilies/smile.png)
Pretty much yes. One difference is that on a LAN there is going to be a lot less latency then on the ineternet, some programs need to be aware of that. For example:
If you want to receive 1024 bytes of data
Code:
recv(TheSocket, Buffer, 1024, 0);
This might work fine on a lan because the data can all arive at once but on the inernet it may not, infact it probably wont.