xasperated :
My campus had wall-mounted ethernet connection. The wi-fi router has only DSL port for internet and four ethernet port which you connect to the pc.
It a Dlink wifi router.
Is there a solution which does not require me buying another router ?
Not clear what your problem is. What's the "My campus had (past tense noted) wall-mounted ethernet connection" have to do with anything? ditto for the "wi-fi" router - where did it come from, etc.?
A couple guesses:
1) You're now in a situation where you've got a DSL connection from an ISP. Plug the router (if it's from the same ISP) into the DSL, and your PCs into any of the 4 router ports.
2) You've got a single Ethernet connection to a local LAN and want to connect multiple PCs via the modem somehow. Remember that, in most modems like the D-Link, the 4 ports are actually a switch on the downstream side of the router, so you can, again, plug multiple PCs into those switchports, and ignore the DSL side altogether. You may have to disable DHCP in the modem to ensure that your local LAN address space is used for the PCs.