how to make instance get floating ip instead of private ip
Using linux as instance, typing ifconfig will get private ip address. Is it possible to get floating ip address from inside VM?
please try to explain with more details what you're trying to do, the effect you want to achieve, your setup.
I believe (s)he wants to assign public IP directly to instance (instead of private and mapping floating IP to it).