How can we bind an socket to particular network interface? i tried using setsockopt on server side. still client can access through both eth0 and lo interfaces.
I can achieve this by setting the particular ip address using serv_addr.sin_addr.s_addr.
But my doubt is can we use only setsockopt to bind to interface without mentioning the ipaddress.
I have an embedded linux system with two network interfaces (lan0, wlan0) that are configured to the same subnet. A server on this system accepts tcp connections on both interfaces.
How I can assure that that all responses for a session are send on the same interface that the request was received on? I.e.
Hi,
I'm trying to make a client/server Java App. Both client and server will be running on the same wi-fi network. Server will be running on a specific port that client is aware of.
I have a Linux server with multiple interfaces. Each interface has an IP and network. Also there is a default route and other routes in a routing table so that connections to certain networks go over one or the other interface.
Hi,
I am new to socket programing and I am trying to send and receive raw L2 packets.
For this, I have to send/recv multiple interfaces.
1. Is it possible to send and receive raw packets on single socket without binding on specific interface?
2. If yes, I would like to now how I can know on which interface the packet has received. Any information on this is great help.
I have a DELL server running RedHat EL 6.3 with two 1G network interfaces, and two 10G network interfaces.
Following this note, I have successfully renamed the two 1G network interfaces that used to be called em1 and em2. However, I cannot rename the 10G network interfaces using this method.
I run the server code below to open a UDP socket. I have two network interfaces on my linux machine and two interfaces are connected to two different networks.
Hi,
I would like to know after the installation of vio server. how many logical network interfaces will be created on vio server if I am having two physical interfaces on vio server.
I am asking this question because I would like know to on the basis of logical network interfaces creation on vio server, I have to create and configured vio client.
wheather any ratio is there?
I'm new to Java so I need help please. I'm writing an application that will onClick send a String to Server and Server needs to return an image using socket. So my client side is Android and server side is PC - java.
I think that my server side is ok (because he prints out all the system.out.print commands) but my client side is not good. Please tell my where is my mistake?