I am using x86 CEPC CE 4.2 platform.
This platform has a modem.
I dial a RAS entry and connect to the Internet. I create a server socket
through calls to socket()...bind()...listen() and I am able to receive
connections on the socket to the IP that the modem receives.
The problem occurs when I add a LAN support to my platform. When I have LAN
support, I automatically receive an IP from the DHCP server. Now, my device
has two IP: one from the LAN and one from the modem I used to dial to the
Internet.
But when I am connected to the LAN, I am no longer able to receive
connection on the server sockets() using the IP that the modem receives.
Is this the expected behaviour? What shold I do in order to receive
connections in cases that I also have an IP from the LAN?
Thanks.
Offir.