hunter-packages / hunter-bot

Bot for Hunter package manager
BSD 2-Clause "Simplified" License
1 stars 2 forks source link

What is `local_ip_address` #10

Open ruslo opened 8 years ago

ruslo commented 8 years ago

We have public_ip_address already, why we need local? Is it mean to be 127.0.0.1?

Cyberunner23 commented 8 years ago

It's the same ip address a regular webserver would listen to, for the test server the one that works is 0.0.0.0

ruslo commented 8 years ago

Can we always have 0.0.0.0?

Cyberunner23 commented 8 years ago

it depends on the server you put the bot on, sometimes its configed to use 0.0.0.0 sometimes 127.0.0.1

ruslo commented 8 years ago

Yes, this is kind of what I mean. Can we decide what to use between those two without involving user?

ruslo commented 8 years ago

Probably if I rephrase the question it will be more helpful: "what should I use for my own server now?"

ruslo commented 8 years ago

By the way do we need to use ip in public_ip_addres? Can it be hostname? E.g. bot.hunter.sh?

Cyberunner23 commented 8 years ago

By the way do we need to use ip in public_ip_addres? Can it be hostname? E.g. bot.hunter.sh?

We should test it but I think it will work

Cyberunner23 commented 8 years ago

"what should I use for my own server now?"

Probably 127.0.0.1? For it to work on the test server I tried with common ip adresses and 0.0.0.0 worked, you might have to experiment as well