Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
source ip / bind
#1
Hello, 

I am trying to bind my socket connection to one of my outbound network interfaces using the source ip option in the Ultimate Web Scraper Toolkit.

I have been looking over the code, as well as reading other threads in the forum ...however I don't seem to be having any success. 

Even when debugging - I can see that the $option variable for Source_IP is being set correctly, however when checking against icanhazip.com it's clear that the still binding to my eth0 device and not the source IP specified. 


Other than this feature, I love everything about this tool. 

Anyway you can assist in making this feature functional? Perhaps I'm doing something incorrectly? 
Reply
#2
'source_ip' should be all lowercase.

http://php.net/manual/en/context.socket.php

'bindto' expects IPv6 addresses to be inside brackets. Make sure you are passing '[::1]' instead of '::1'.
Author of Barebones CMS

If you found my reply to be helpful, be sure to donate!
All funding goes toward future product development.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
© CubicleSoft