Hi All,
I am trying to great a webserver that works over https (443) and listens on a single ip address on a machine that has multiple ip addresses. -
use IO::Socket::SSL;
-
-
$socket = new IO::Socket::SSL(
-
Listen => 5,
-
ListenAddr => '1.2.3.4',
-
LocalPort => 443,
-
Proto => 'tcp',
-
Reuse => 1,
-
SSL_server => 1,
-
SSL_key_file => $ssl_key_file,
-
SSL_cert_file => $ssl_cert_file,
-
SSL_ca_file => $ssl_ca_file,
-
SSL_verify_mode => 0x00,
-
SSL_verify_callback => 1,
-
) || die "Can't open IO::Socket::SSL : $!\n", &IO::Socket::SSL::errstr, "\n";
-
-
print "Current sockhost: ", $socket->sockhost(), "\n";
-
However, the above code always binds to 0.0.0.0 are there any options that are missing to force perl to bind to a single ip address?
0 1479 Sign in to post your reply or Sign up for a free account.
Similar topics
by: christian_stengel |
last post by:
Hi *,
I have just started to learn python and I am having a problem with
an python client connecting to a perl server using ssl (I tried this
with pyOpenSSL and with the build in SSL Module).
...
|
by: Nicolas Bruneau |
last post by:
Hello,
I open a SSL socket IO::Socket::SSL module, sending data, received
data, and then closed with the shutdown(2) function. Everything is ok
untill the loop number 254, that makes the script...
|
by: not entered |
last post by:
I've got a perl script running on a linux box. The script uses a socket
server and when I stop the script and restart it, I can't get a listener for
about 5 minutes. The line that I'm using to...
|
by: Daniel |
last post by:
after opening socket, sending data then closing socket 3000 times i get
"Only one usage of each socket address"
what am i doing wrong? is there some thing else i need to do to free up the
socket...
|
by: Gregory Hassett |
last post by:
Hello,
I want to periodically send a TCP packet to a peer, always from the same
source port. That is, each packet will come from my local ip address, port
8801, and go to the peer's ip address,...
|
by: Ennio-Sr |
last post by:
Hi!
During my last attempt to set postgresql working under cygwin on a win-98
OS I got the warning:
cygserver: failed to create UNIX domain socket: Address family not supported by
protocol
What...
|
by: kuguy |
last post by:
Hi all,
I'm new to the forums, so I hope this isn't in the wrong place...
I have that "Software caused connection abort: socket write error" exception error that i've never meet before.
...
|
by: shelato |
last post by:
Hi,
I am able to open a socket connection to a micro controller, connected to a lynksys router, using visual basic code on a windows web site. Now I'm trying to open a socket connection using...
|
by: pavanponnapalli |
last post by:
hi,
I have got a batch file where i have written the following modules from
CPAN:
ppm install DBI
ppm install DBD::mysql
ppm install Config::Properties
ppm install Net::SMTP
ppm...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |