libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] How to bind to a specific IP address "out of the box"?


From: silvioprog
Subject: [libmicrohttpd] How to bind to a specific IP address "out of the box"?
Date: Tue, 12 Apr 2022 21:28:08 -0300

Hey guys.

Some days ago a user asked me the following question with the attached picture:

> Kevin said:
> Ok, I got some more explanation from my I.T. guy.  It appears that the servers listen on 0.0.0.0 which is "All IPs on All NICs on the physical server it is running on".
> I want to have multiple different apps running on the same server, but bound only to a specific IP. I have one server app with HOST set to 1.0.125.11 port 443 and it BLOCKS the other server app from trying to run on 1.0.125.13 port 443.
> Here is a screen shot from cports...
> Having this capability will ELIMINATE the need to use an additional layer, like Apache/Nginx or anything. I would be running pure MHD stand alone .exes on a Windows server. Super super simple! Yipee!


But, after looking at our MHD API, it seems we don't have any feature "out of the box" like a flag to specify the host.

So, is there any trick to handle it in pure MHD API without coding/handling sockets by hand?

Thanks in advance for any help!

image.png

--
Silvio Clécio

reply via email to

[Prev in Thread] Current Thread [Next in Thread]