Hi,
I got a server with several of IP's at. Those IP's I want to create sockets through and afterwards from a client, and afterwards send a socket to a webpage.
The problem is that I want to use the IP that the client is calling to create the socket to the webpage, and not just the main IP of the server.
Etc, I connect from client to:
xx.xx.xx.45
and then I create a socket to a webserver using,
s.bind((gethostname(), 1700))
s.connect(addr)
but that binding will attach it to the main IP: xx.xx.xx.12 and not xx.xx.xx.45 which is the IP I wans to bind to the webserver socket.
Is there any solution of how I can recall the IP that I created the socket through so I not just get the main IP of the server?