SylRob wrote:Alex,
I'm really familiar with the socket function ! . This won't work if the client connection come from the internet over a Router you'll obtain the ROUTER IP !
Best Regards,
Sylvain
I have used sockets over routers before, and have never had an issue with only getting the router ip....
Below over vpn
- Code: Select all Expand view
D:\Dev>ipconfig
Windows IP Configuration
PPP adapter AST:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 172.21.129.146
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . :
D:\Dev>tracert -d 172.21.141.190
Tracing route to 172.21.141.190 over a maximum of 30 hops
1 394 ms 307 ms 373 ms 172.21.129.128
2 * 276 ms 544 ms 172.21.128.2
3 687 ms 841 ms 467 ms 172.21.135.6
4 588 ms 294 ms 752 ms 172.21.141.190
Trace complete.
D:\Dev>telnet 172.21.141.190 4040
Welcome listener from 172.21.129.146