If you are accessing the Internet through a router, it is probably
doing NAT/PAT. The 192.168.1.102 address is a private address, that
is, it cannot be assigned to any interface on the public Internet. In
contrast, the address returned by whatsmyip is the IP address of the
public interface of your router.
Best regards,
Fernando
On Sun, Jun 22, 2008 at 3:53 AM, angel dario
<sci...@ho...> wrote:
>
>
> Hello....
>
> I created a simple Sockets server that's hosting on port 80.
> I created an account for DynDNS and I created dynamically DNS with my computer IP address.
>
> When I test my server using 192.168.1.102 it works perfectly however when I test my server with
> my computer IP (same as http://whatsmyip.org/ which is the same as DynDNS DNS) it doesn't work.
>
> When I try to create a socket with my computer Ip (http://whatsmyip.org/), it doesn't even work. It give me this error:
>
> WSAEADDRNOTAVAIL
> 10049
>
> Cannot assign requested address. The requested address is not valid in its context. This normally results from an attempt to bind to an address that is not valid for the local computer. This can also result from connect, sendto, WSAConnect, WSAJoinLeaf, or WSASendTo when the remote address or port is not valid for a remote computer (for example, address or port 0).
> Can someone help me on how can I host my C++ server using my own computer ip (http://whatsmyip.org/).?
>
> ________________________________
> The i'm Talkathon starts 6/24/08. For now, give amongst yourselves. Learn More
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
--
Fernando Lichtschein
li...@fi...
|