Hi,
I am using axis2_http_server with staff, RESTful services are running
on axis2c server and staff client is being used for GET/POST data. Now my
problem is that, i have a router setup with a firewall and the allowed
source and destination ports are fixed. Hence i need to have the exact
source and destination ports for the REST calls to be delivered behind the
router to my PC but when we create a TCP client socket operating system
will allocate local port from some of unused. so staff client ( which
ultimately uses axis2c libraries to send data ) will send data with random
source port (i checked with wireshark and each time new source port is
selected).
Finally my question is : in axis2c source which file to edit to
give my own source port instead of random available port. I need to have
fixed source port so that i can do tcp hole punching with same source port
to achieve NAT traversal. Please let me know if there is any way to do
this. THANK YOU
Regards,
Mandar