Assign static IP and set host name

Thanks for your reply. I previously tried swapping that. I also tried your code.
No dice.
Both ways it doesn't show as a connected device in the router, but I can ping it at 1.100 and network scanner shows it at 1.100 host name shows on scanner as N/A

(Sorry about not tagging my code)