If you are the only player in the overworld, you should be able to sleep in a bed to skip night, even if there are other players connected, but in the nether.
Steps to Reproduce:
- Open a world and invite another player over LAN
- Try to sleep at night when another player is in the nether
- Notice that you cannot skip the night
Reference from the wiki:
To skip the night, all players in the Overworld must be in bed at the same time.