CSGO-VMPanel icon indicating copy to clipboard operation
CSGO-VMPanel copied to clipboard

Public IP not getting properly by Plugin

Open TandelK opened this issue 4 years ago • 3 comments

Describe the bug When using new Plugin , the Server is automatically added but the IP address it takes is not of Public IP but taking Internal IP of the Network. This happens with all major Hosting like Amazon AWS, DigitalOcean and other providers.

To Reproduce Steps to reproduce the behavior:

  1. Install New Plugin on Server and connect it to Database
  2. Open Panel and check the new server has been added to the list.
  3. Go to Modify Server Information and check the IP address displayed.

Expected behavior Should return proper Public IP address otherwise RCON wont work.

TandelK avatar Dec 28 '20 08:12 TandelK

Plugin takes the value of CVAR named "hostip" from CSGO Server. Which I found to be the best way of getting the IP of server and in most of the cases it is the public IP of server, until it is been overwritten manually for machines in which multiple IP is available.

If you happen to know a more solid way of getting Public IP of server please let me know. I will update in next version.

Summer-16 avatar Jan 02 '21 09:01 Summer-16

@Summer-16 The only solution i had known before was to use the same hostip method but use it with converted tool here into numbers as i had discussed same with CallAdmin Plugin Developer.

https://github.com/Impact123/CallAdmin/issues/28

TandelK avatar Jan 03 '21 13:01 TandelK

Thanks for reference, I will try to fix it in next version.

Summer-16 avatar Jan 13 '21 18:01 Summer-16