If this was mine the router would be against the wall to maximize the connection. If that fails I'd move to a powerline bridge like this: