Aleksandr
Aleksandr

Reputation: 116

How to give to a client specific ip address in Casablanca (CPP Rest SDK)

I have multiple NIC cards in my machine. One of them is a static IP and the other one isn't. However, they both have access to the Internet.
Is there a way to force the CPP Rest SDK (Casablanca) to use the static IP address instead of the non-static IP?
I came across IP binding in the following: How to give to a client specific ip address in C
I would like to do that same type of IP binding using the CPP Rest SDK.
Does anyone have any experience with this?

Upvotes: 1

Views: 628

Answers (1)

Mahdi Salmanzadeh
Mahdi Salmanzadeh

Reputation: 339

I think your problem will be solved with this points: at first you have to run your code with administrator privilege. and second define you http_listener this way:

http_listener m_listener_(L"http://YOUR_STATIC_IP:port/")

Upvotes: 1

Related Questions